mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 05:42:46 +00:00
Fix account_data not correctly send in a complete sync (#2379)
* Return the StreamPosition from the database and not the latest * Fix linter issue
This commit is contained in:
parent
5306c73b00
commit
4c19f22725
6 changed files with 27 additions and 19 deletions
|
@ -43,7 +43,7 @@ func (p *AccountDataStreamProvider) IncrementalSync(
|
|||
To: to,
|
||||
}
|
||||
|
||||
dataTypes, err := p.DB.GetAccountDataInRange(
|
||||
dataTypes, pos, err := p.DB.GetAccountDataInRange(
|
||||
ctx, req.Device.UserID, r, &req.Filter.AccountData,
|
||||
)
|
||||
if err != nil {
|
||||
|
@ -95,5 +95,5 @@ func (p *AccountDataStreamProvider) IncrementalSync(
|
|||
}
|
||||
}
|
||||
|
||||
return to
|
||||
return pos
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue