Move syncv3 typings event for user.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -4,7 +4,6 @@ use futures::StreamExt;
|
||||
use ruma::{
|
||||
OwnedRoomId, OwnedUserId, RoomId, UserId,
|
||||
api::federation::transactions::edu::{Edu, TypingContent},
|
||||
events::SyncEphemeralRoomEvent,
|
||||
};
|
||||
use tokio::sync::{RwLock, broadcast};
|
||||
use tuwunel_core::{
|
||||
@@ -223,20 +222,6 @@ impl Service {
|
||||
Ok(user_ids)
|
||||
}
|
||||
|
||||
pub async fn typings_event_for_user(
|
||||
&self,
|
||||
room_id: &RoomId,
|
||||
sender_user: &UserId,
|
||||
) -> Result<SyncEphemeralRoomEvent<ruma::events::typing::TypingEventContent>> {
|
||||
Ok(SyncEphemeralRoomEvent {
|
||||
content: ruma::events::typing::TypingEventContent {
|
||||
user_ids: self
|
||||
.typing_users_for_user(room_id, sender_user)
|
||||
.await?,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
async fn federation_send(&self, room_id: &RoomId, user_id: &UserId, typing: bool) -> Result {
|
||||
debug_assert!(
|
||||
self.services.globals.user_is_local(user_id),
|
||||
|
||||
Reference in New Issue
Block a user