mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-21 01:13:45 +01:00
Cherry-pick typing fix from #2061
Co-authored-by: Tommie Gannert <tommie@gannert.se>
This commit is contained in:
parent
08a0278760
commit
b7f09f78b0
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ func NewOutputTypingEventConsumer(
|
||||||
func (s *OutputTypingEventConsumer) Start() error {
|
func (s *OutputTypingEventConsumer) Start() error {
|
||||||
s.eduCache.SetTimeoutCallback(func(userID, roomID string, latestSyncPosition int64) {
|
s.eduCache.SetTimeoutCallback(func(userID, roomID string, latestSyncPosition int64) {
|
||||||
pos := types.StreamPosition(latestSyncPosition)
|
pos := types.StreamPosition(latestSyncPosition)
|
||||||
|
s.stream.Advance(pos)
|
||||||
s.notifier.OnNewTyping(roomID, types.StreamingToken{TypingPosition: pos})
|
s.notifier.OnNewTyping(roomID, types.StreamingToken{TypingPosition: pos})
|
||||||
})
|
})
|
||||||
return s.typingConsumer.Start()
|
return s.typingConsumer.Start()
|
||||||
|
|
Loading…
Reference in a new issue