mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 23:13:11 -06:00
Fix streaming position in multiroom feature (#47)
This commit is contained in:
parent
49a93736ee
commit
a7984645e8
|
|
@ -505,7 +505,7 @@ func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request, device *userapi.
|
||||||
func(snapshot storage.DatabaseTransaction) types.StreamPosition {
|
func(snapshot storage.DatabaseTransaction) types.StreamPosition {
|
||||||
return rp.streams.MultiRoomStreamProvider.IncrementalSync(
|
return rp.streams.MultiRoomStreamProvider.IncrementalSync(
|
||||||
syncReq.Context, snapshot, syncReq,
|
syncReq.Context, snapshot, syncReq,
|
||||||
syncReq.Since.PresencePosition, rp.Notifier.CurrentPosition().PresencePosition,
|
syncReq.Since.MultiRoomDataPosition, rp.Notifier.CurrentPosition().MultiRoomDataPosition,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -410,7 +410,8 @@ func (r *Response) HasUpdates() bool {
|
||||||
len(r.Rooms.Peek) > 0 ||
|
len(r.Rooms.Peek) > 0 ||
|
||||||
len(r.ToDevice.Events) > 0 ||
|
len(r.ToDevice.Events) > 0 ||
|
||||||
len(r.DeviceLists.Changed) > 0 ||
|
len(r.DeviceLists.Changed) > 0 ||
|
||||||
len(r.DeviceLists.Left) > 0)
|
len(r.DeviceLists.Left) > 0) ||
|
||||||
|
len(r.MultiRoom) > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewResponse creates an empty response with initialised maps.
|
// NewResponse creates an empty response with initialised maps.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue