feat: Do not allow suspended users to send typing statuses

This commit is contained in:
nexy7574 authored and Ellis Git committed 2025-06-29 15:38:01 +00:00
1 parent 1124097bd1
commit 72f8cb3038
1 file changed
+2 -1
+2 -1
View File
@@ -26,7 +26,7 @@ pub(crate) async fn create_typing_event_route(
{
return Err!(Request(Forbidden("You are not in this room.")));
}
if !services.users.is_suspended(sender_user).await? {
match body.state {
| Typing::Yes(duration) => {
let duration = utils::clamp(
@@ -62,6 +62,7 @@ pub(crate) async fn create_typing_event_route(
.await?;
},
}
}
// ping presence
if services.config.allow_local_presence {