mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-02 16:25:56 +03:00
NPE fix when accessing event.sender
This commit is contained in:
parent
bf40011815
commit
3d3680e42f
1 changed files with 2 additions and 2 deletions
|
@ -58,9 +58,9 @@ var NotifierView = {
|
|||
if (ev.getContent().body) msg = ev.getContent().body;
|
||||
}
|
||||
|
||||
var avatarUrl = Avatar.avatarUrlForMember(
|
||||
var avatarUrl = ev.sender ? Avatar.avatarUrlForMember(
|
||||
ev.sender, 40, 40, 'crop'
|
||||
);
|
||||
) : null;
|
||||
|
||||
var notification = new global.Notification(
|
||||
title,
|
||||
|
|
Loading…
Reference in a new issue