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 | 259 | the room does not need to be scrolled to the last message. |
| 260 | 260 | .It Sy message |
| 261 | 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 | 262 | .El |
| 267 | 263 | .It Sy read_receipt_display |
| 268 | 264 | Defines whether or not read confirmations are displayed. |
src/config.rs −3
| @@ -365,15 +365,12 @@ pub enum ReadReceiptTrigger { | ||
| 365 | 365 | Scrollback, |
| 366 | 366 | /// Update read receipts for a room once the user sends a message to it. |
| 367 | 367 | Message, |
| 368 | /// Never update read receipts. | |
| 369 | Disabled, | |
| 370 | 368 | } |
| 371 | 369 | |
| 372 | 370 | impl ReadReceiptTrigger { |
| 373 | 371 | /// Whether to update read receipts when a room is being rendered. |
| 374 | 372 | pub fn on_render(&self, last_visible: bool, room_focused: bool) -> bool { |
| 375 | 373 | match self { |
| 376 | Self::Disabled => false, | |
| 377 | 374 | Self::Scrollback => true, |
| 378 | 375 | Self::Focused => last_visible && room_focused, |
| 379 | 376 | Self::Visible => last_visible, |