Commit d11f0ef40d

d11f0ef40deccf95b541e0ae4fdcf30e9ec704da

parent: 2d48a2ace9

Unregistered key

Ulyssa <git@ulyssa.dev> · 2026-08-17 01:56 UTC

Remove `disabled` option for `read_receipt_trigger` (#641)

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
259the room does not need to be scrolled to the last message. 259the room does not need to be scrolled to the last message.
260.It Sy message 260.It Sy message
261A message must be sent to the room before marking it read. 261A message must be sent to the room before marking it read.
262.It Sy disabled
263Rooms and threads do not get their read markers updated, and the room
264will remain marked unread until manually cleared or another device updates
265the read marker.
266.El 262.El
267.It Sy read_receipt_display 263.It Sy read_receipt_display
268Defines whether or not read confirmations are displayed. 264Defines 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
372impl ReadReceiptTrigger { 370impl 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,