mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-03 12:13:09 -06:00
Fix another bug
This commit is contained in:
parent
021f276255
commit
787c04c98a
|
|
@ -167,14 +167,14 @@ func (p *PDUStreamProvider) IncrementalSync(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(stateDeltas) == 0 {
|
|
||||||
return to
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, roomID := range joinedRooms {
|
for _, roomID := range joinedRooms {
|
||||||
req.Rooms[roomID] = gomatrixserverlib.Join
|
req.Rooms[roomID] = gomatrixserverlib.Join
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(stateDeltas) == 0 {
|
||||||
|
return to
|
||||||
|
}
|
||||||
|
|
||||||
newPos = from
|
newPos = from
|
||||||
for _, delta := range stateDeltas {
|
for _, delta := range stateDeltas {
|
||||||
var pos types.StreamPosition
|
var pos types.StreamPosition
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue