notify even in current room
This commit is contained in:
parent
8472803cd0
commit
2ada74d2be
@ -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.
|
// The message is not in the current room, show new message status in room list.
|
||||||
room.AddUnread(message.ID(), should.Notify, should.Highlight)
|
room.AddUnread(message.ID(), should.Notify, should.Highlight)
|
||||||
} else {
|
} else {
|
||||||
view.matrix.MarkRead(room.ID, message.ID())
|
room.AddUnread(message.ID(), should.Notify, should.Highlight)
|
||||||
}
|
}
|
||||||
|
|
||||||
if should.Notify && !recentlyFocused && !view.config.Preferences.DisableNotifications {
|
if should.Notify && !recentlyFocused && !view.config.Preferences.DisableNotifications {
|
||||||
|
Loading…
Reference in New Issue
Block a user