fix: not sending enough state on join

This commit is contained in:
Timo Kösters 2022-10-30 21:23:10 +01:00
parent 5d691f405e
commit 0cf6545116
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
3 changed files with 29 additions and 28 deletions

View file

@ -54,10 +54,7 @@ impl service::rooms::edus::typing::Data for KeyValueDatabase {
Ok(())
}
fn typings_maintain(
&self,
room_id: &RoomId,
) -> Result<()> {
fn typings_maintain(&self, room_id: &RoomId) -> Result<()> {
let mut prefix = room_id.as_bytes().to_vec();
prefix.push(0xff);
@ -89,8 +86,10 @@ impl service::rooms::edus::typing::Data for KeyValueDatabase {
}
if found_outdated {
self.roomid_lasttypingupdate
.insert(room_id.as_bytes(), &services().globals.next_count()?.to_be_bytes())?;
self.roomid_lasttypingupdate.insert(
room_id.as_bytes(),
&services().globals.next_count()?.to_be_bytes(),
)?;
}
Ok(())