mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-02-07 11:34:28 -06:00
Fix typing next position in all cases
This commit is contained in:
parent
ebfa8d36c2
commit
c7a9cee5cc
|
@ -580,9 +580,9 @@ func (d *Database) addTypingDeltaToResponse(
|
||||||
jr = *types.NewJoinResponse()
|
jr = *types.NewJoinResponse()
|
||||||
}
|
}
|
||||||
jr.Ephemeral.Events = append(jr.Ephemeral.Events, ev)
|
jr.Ephemeral.Events = append(jr.Ephemeral.Events, ev)
|
||||||
res.NextBatch.TypingPosition++
|
|
||||||
res.Rooms.Join[roomID] = jr
|
res.Rooms.Join[roomID] = jr
|
||||||
}
|
}
|
||||||
|
res.NextBatch.TypingPosition = types.StreamPosition(d.EDUCache.GetLatestSyncPosition())
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue