move typing feature up one level out of rooms.edus.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-03-31 17:14:31 -07:00 committed by June
commit 9790477b0e
8 changed files with 10 additions and 20 deletions
src/api/client_server

View file

@ -28,14 +28,12 @@ pub async fn create_typing_event_route(
);
services()
.rooms
.edus
.typing
.typing_add(sender_user, &body.room_id, utils::millis_since_unix_epoch() + duration)
.await?;
} else {
services()
.rooms
.edus
.typing
.typing_remove(sender_user, &body.room_id)
.await?;