mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-06 22:06:11 +02:00
revert typings_maintain refactor
This commit is contained in:
parent
4dd809fdc4
commit
7a1a0a0bec
1 changed files with 22 additions and 24 deletions
|
@ -146,10 +146,7 @@ impl Service {
|
|||
}
|
||||
};
|
||||
|
||||
if removable.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if !removable.is_empty() {
|
||||
let typing = &mut self.typing.write().await;
|
||||
let room = typing.entry(room_id.to_owned()).or_default();
|
||||
for user in &removable {
|
||||
|
@ -176,6 +173,7 @@ impl Service {
|
|||
self.federation_send(room_id, user, false).await?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue