mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
fix: stuck typing indicators
This commit is contained in:
parent
c61914c8e1
commit
5d691f405e
3 changed files with 49 additions and 39 deletions
|
|
@ -10,6 +10,9 @@ pub trait Data: Send + Sync {
|
|||
/// Removes a user from typing before the timeout is reached.
|
||||
fn typing_remove(&self, user_id: &UserId, room_id: &RoomId) -> Result<()>;
|
||||
|
||||
/// Makes sure that typing events with old timestamps get removed.
|
||||
fn typings_maintain(&self, room_id: &RoomId) -> Result<()>;
|
||||
|
||||
/// Returns the count of the last typing update in this room.
|
||||
fn last_typing_update(&self, room_id: &RoomId) -> Result<u64>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue