From b7f09f78b05a3e0dfb3fd008d4b1d2fc0b5a9a74 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 3 Dec 2021 17:26:30 +0000 Subject: [PATCH] Cherry-pick typing fix from #2061 Co-authored-by: Tommie Gannert --- syncapi/consumers/eduserver_typing.go | 1 + 1 file changed, 1 insertion(+) 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()