aboutsummaryrefslogtreecommitdiff
path: root/syncapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-12-03 17:26:30 +0000
committerNeil Alexander <neilalexander@users.noreply.github.com>2021-12-03 17:26:30 +0000
commitb7f09f78b05a3e0dfb3fd008d4b1d2fc0b5a9a74 (patch)
treea09e84eb369224d25535bb77e0ec485de15d61e7 /syncapi
parent08a0278760b6d64ccacdb9ab47cd468f80243c57 (diff)
Cherry-pick typing fix from #2061
Co-authored-by: Tommie Gannert <tommie@gannert.se>
Diffstat (limited to 'syncapi')
-rw-r--r--syncapi/consumers/eduserver_typing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/syncapi/consumers/eduserver_typing.go b/syncapi/consumers/eduserver_typing.go
index c10d1e94..8d06e3ca 100644
--- a/syncapi/consumers/eduserver_typing.go
+++ b/syncapi/consumers/eduserver_typing.go
@@ -74,6 +74,7 @@ func NewOutputTypingEventConsumer(
func (s *OutputTypingEventConsumer) Start() error {
s.eduCache.SetTimeoutCallback(func(userID, roomID string, latestSyncPosition int64) {
pos := types.StreamPosition(latestSyncPosition)
+ s.stream.Advance(pos)
s.notifier.OnNewTyping(roomID, types.StreamingToken{TypingPosition: pos})
})
return s.typingConsumer.Start()