Update notification code to new avatar format
This commit is contained in:
parent
66ae3689c1
commit
9f021a9d7f
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@
|
||||||
sender.fetch().then(function() {
|
sender.fetch().then(function() {
|
||||||
var notification = new Notification(sender.getTitle(), {
|
var notification = new Notification(sender.getTitle(), {
|
||||||
body: message.getDescription(),
|
body: message.getDescription(),
|
||||||
icon: sender.getAvatarUrl(),
|
icon: sender.getAvatar().url,
|
||||||
tag: conversation.id
|
tag: conversation.id
|
||||||
});
|
});
|
||||||
notification.onclick = function() {
|
notification.onclick = function() {
|
||||||
|
|
Loading…
Reference in a new issue