mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-10 17:03:20 -04:00
committed by
Ivan Enderlin
parent
254d86bc45
commit
9f196be2f6
@@ -3163,8 +3163,8 @@ impl Room {
|
||||
/// Set a flag on the room to indicate that the user has explicitly marked
|
||||
/// it as (un)read.
|
||||
///
|
||||
/// This is a no-op if [`Room::is_marked_unread()`] returns the same value
|
||||
/// as `unread`.
|
||||
/// This is a no-op if [`BaseRoom::is_marked_unread()`] returns the same
|
||||
/// value as `unread`.
|
||||
pub async fn set_unread_flag(&self, unread: bool) -> Result<()> {
|
||||
if self.is_marked_unread() == unread {
|
||||
// The request is not necessary.
|
||||
|
||||
Reference in New Issue
Block a user