Commit d11f0ef40d
Unregistered key
Layout: unified · split
docs/iamb.5 −4
| @@ -259,10 +259,6 @@ Some portion of the scrollback for the room or thread must be on screen, but | |||
| 259 | the room does not need to be scrolled to the last message. | 259 | the room does not need to be scrolled to the last message. |
| 260 | .It Sy message | 260 | .It Sy message |
| 261 | A message must be sent to the room before marking it read. | 261 | A message must be sent to the room before marking it read. |
| 262 | .It Sy disabled | ||
| 263 | Rooms and threads do not get their read markers updated, and the room | ||
| 264 | will remain marked unread until manually cleared or another device updates | ||
| 265 | the read marker. | ||
| 266 | .El | 262 | .El |
| 267 | .It Sy read_receipt_display | 263 | .It Sy read_receipt_display |
| 268 | Defines whether or not read confirmations are displayed. | 264 | Defines whether or not read confirmations are displayed. |
src/config.rs −3
| @@ -365,15 +365,12 @@ pub enum ReadReceiptTrigger { | |||
| 365 | Scrollback, | 365 | Scrollback, |
| 366 | /// Update read receipts for a room once the user sends a message to it. | 366 | /// Update read receipts for a room once the user sends a message to it. |
| 367 | Message, | 367 | Message, |
| 368 | /// Never update read receipts. | ||
| 369 | Disabled, | ||
| 370 | } | 368 | } |
| 371 | 369 | ||
| 372 | impl ReadReceiptTrigger { | 370 | impl ReadReceiptTrigger { |
| 373 | /// Whether to update read receipts when a room is being rendered. | 371 | /// Whether to update read receipts when a room is being rendered. |
| 374 | pub fn on_render(&self, last_visible: bool, room_focused: bool) -> bool { | 372 | pub fn on_render(&self, last_visible: bool, room_focused: bool) -> bool { |
| 375 | match self { | 373 | match self { |
| 376 | Self::Disabled => false, | ||
| 377 | Self::Scrollback => true, | 374 | Self::Scrollback => true, |
| 378 | Self::Focused => last_visible && room_focused, | 375 | Self::Focused => last_visible && room_focused, |
| 379 | Self::Visible => last_visible, | 376 | Self::Visible => last_visible, |