mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-10 17:03:20 -04:00
refactor(ui): Set room as variable instead of calling self.room() every time
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
committed by
Ivan Enderlin
parent
a8dcea6931
commit
254d86bc45
@@ -606,10 +606,12 @@ impl Timeline {
|
||||
}
|
||||
}
|
||||
|
||||
let room = self.room();
|
||||
|
||||
if !receipts.is_empty() {
|
||||
self.room().send_multiple_receipts(receipts).await?;
|
||||
room.send_multiple_receipts(receipts).await?;
|
||||
} else {
|
||||
self.room().set_unread_flag(false).await?;
|
||||
room.set_unread_flag(false).await?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user