stream_muting: Add `mark_read: false` option when re-selecting message.

Added `mark_read: false` as it doesn't make sense to
read/undread a message when just muting or unmuting a stream.
It is to make sure that we never consume a unread message
when just muting/unmuting streams.
This commit is contained in:
Lalit 2023-02-16 23:14:20 +05:30 committed by Tim Abbott
parent 1cb4886a23
commit 508ac58dc0
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ export function update_is_muted(sub, value) {
message_lists.home.select_id(message_lists.home.selected_id(), {
use_closest: true,
empty_ok: true,
mark_read: false,
});
if (message_lists.current.selected_id() !== -1) {
message_lists.current.view.set_message_offset(msg_offset);