notify even in current room

This commit is contained in:
Alexander Bocken 2023-12-22 17:30:07 +01:00
parent 8472803cd0
commit 2ada74d2be
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -415,7 +415,7 @@ func (view *MainView) NotifyMessage(room *rooms.Room, message ifc.Message, shoul
// The message is not in the current room, show new message status in room list.
room.AddUnread(message.ID(), should.Notify, should.Highlight)
} else {
view.matrix.MarkRead(room.ID, message.ID())
room.AddUnread(message.ID(), should.Notify, should.Highlight)
}
if should.Notify && !recentlyFocused && !view.config.Preferences.DisableNotifications {