mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
NPE fix when accessing event.sender
This commit is contained in:
parent
bf40011815
commit
3d3680e42f
@ -58,9 +58,9 @@ var NotifierView = {
|
|||||||
if (ev.getContent().body) msg = ev.getContent().body;
|
if (ev.getContent().body) msg = ev.getContent().body;
|
||||||
}
|
}
|
||||||
|
|
||||||
var avatarUrl = Avatar.avatarUrlForMember(
|
var avatarUrl = ev.sender ? Avatar.avatarUrlForMember(
|
||||||
ev.sender, 40, 40, 'crop'
|
ev.sender, 40, 40, 'crop'
|
||||||
);
|
) : null;
|
||||||
|
|
||||||
var notification = new global.Notification(
|
var notification = new global.Notification(
|
||||||
title,
|
title,
|
||||||
|
Loading…
Reference in New Issue
Block a user