revert typings_maintain refactor

This commit is contained in:
Jade Ellis 2024-12-18 16:01:41 +00:00
parent 4dd809fdc4
commit 7a1a0a0bec
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -146,10 +146,7 @@ impl Service {
} }
}; };
if removable.is_empty() { if !removable.is_empty() {
return Ok(());
}
let typing = &mut self.typing.write().await; let typing = &mut self.typing.write().await;
let room = typing.entry(room_id.to_owned()).or_default(); let room = typing.entry(room_id.to_owned()).or_default();
for user in &removable { for user in &removable {
@ -176,6 +173,7 @@ impl Service {
self.federation_send(room_id, user, false).await?; self.federation_send(room_id, user, false).await?;
} }
} }
}
Ok(()) Ok(())
} }