mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Not all events have a sender
This commit is contained in:
parent
b8f9cb44b8
commit
1c03eabadb
@ -32,7 +32,7 @@ module.exports = {
|
|||||||
|
|
||||||
onRoomTimeline: function(ev, room, toStartOfTimeline) {
|
onRoomTimeline: function(ev, room, toStartOfTimeline) {
|
||||||
if (toStartOfTimeline) return;
|
if (toStartOfTimeline) return;
|
||||||
if (ev.sender.userId == MatrixClientPeg.get().credentials.userId) return;
|
if (ev.sender && ev.sender.userId == MatrixClientPeg.get().credentials.userId) return;
|
||||||
|
|
||||||
var enabled = global.localStorage.getItem('notifications_enabled');
|
var enabled = global.localStorage.getItem('notifications_enabled');
|
||||||
if (enabled === 'false') return;
|
if (enabled === 'false') return;
|
||||||
|
Loading…
Reference in New Issue
Block a user