mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Return "to", if we didn't return any presence events (#2407)
Return correct stream position, if we didn't return any presence events
This commit is contained in:
parent
31799a3b2a
commit
987d7adc5d
1 changed files with 4 additions and 0 deletions
|
@ -145,6 +145,10 @@ func (p *PresenceStreamProvider) IncrementalSync(
|
||||||
p.cache.Store(cacheKey, presence)
|
p.cache.Store(cacheKey, presence)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(req.Response.Presence.Events) == 0 {
|
||||||
|
return to
|
||||||
|
}
|
||||||
|
|
||||||
return lastPos
|
return lastPos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue