0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-19 00:23:53 +01:00

Cherry-pick typing fix from #2061

Co-authored-by: Tommie Gannert <tommie@gannert.se>
This commit is contained in:
Neil Alexander 2021-12-03 17:26:30 +00:00
parent 08a0278760
commit b7f09f78b0
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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()