mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
syncapi/requestpool: reintroduce req.since == nil check
This commit is contained in:
parent
16e3156260
commit
ff787ccd7e
|
|
@ -328,9 +328,7 @@ func (rp *RequestPool) appendAccountData(
|
||||||
// data keys were set between two message. This isn't a huge issue since the
|
// data keys were set between two message. This isn't a huge issue since the
|
||||||
// duplicate data doesn't represent a huge quantity of data, but an optimisation
|
// duplicate data doesn't represent a huge quantity of data, but an optimisation
|
||||||
// here would be making sure each data is sent only once to the client.
|
// here would be making sure each data is sent only once to the client.
|
||||||
// TODO: We used to have req.since == nil here, is there any case where req.since
|
if req.since == nil || (req.since.PDUPosition() == 0 && req.since.EDUPosition() == 0) {
|
||||||
// can actually be nil?
|
|
||||||
if req.since.PDUPosition() == 0 && req.since.EDUPosition() == 0 {
|
|
||||||
// If this is the initial sync, we don't need to check if a data has
|
// If this is the initial sync, we don't need to check if a data has
|
||||||
// already been sent. Instead, we send the whole batch.
|
// already been sent. Instead, we send the whole batch.
|
||||||
dataReq := &userapi.QueryAccountDataRequest{
|
dataReq := &userapi.QueryAccountDataRequest{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue