mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Your own messages should not count as unread
This commit is contained in:
parent
58f9210b5a
commit
7d621d88d8
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ module.exports = {
|
|||
* count of unread messages
|
||||
*/
|
||||
eventTriggersUnreadCount: function(ev) {
|
||||
if (ev.getType() == "m.room.member") {
|
||||
if (ev.sender && ev.sender.userId == MatrixClientPeg.get().credentials.userId) {
|
||||
return false;
|
||||
} else if (ev.getType() == "m.room.member") {
|
||||
return false;
|
||||
} else if (ev.getType == 'm.room.message' && ev.getContent().msgtype == 'm.notify') {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue