mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Don't count as an unread message if we don't have a tile for it.
This commit is contained in:
parent
c1f28bb6b9
commit
f8cc6bdad6
1 changed files with 3 additions and 1 deletions
|
@ -15,6 +15,7 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var MatrixClientPeg = require('./MatrixClientPeg');
|
var MatrixClientPeg = require('./MatrixClientPeg');
|
||||||
|
var sdk = require('./index');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +28,8 @@ module.exports = {
|
||||||
} else if (ev.getType == 'm.room.message' && ev.getContent().msgtype == 'm.notify') {
|
} else if (ev.getType == 'm.room.message' && ev.getContent().msgtype == 'm.notify') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
var EventTile = sdk.getComponent('rooms.EventTile');
|
||||||
|
return EventTile.haveTileForEvent(ev);
|
||||||
},
|
},
|
||||||
|
|
||||||
doesRoomHaveUnreadMessages: function(room) {
|
doesRoomHaveUnreadMessages: function(room) {
|
||||||
|
|
Loading…
Reference in a new issue