Fix empty username when declining a friend request

This commit is contained in:
yflory
2019-05-23 16:02:21 +02:00
parent 70e65721cd
commit 4240d1c0d5
2 changed files with 4 additions and 2 deletions

View File

@@ -946,7 +946,9 @@ define([
return;
}
// Otherwise, just remove the notification
store.mailbox.sendTo('DECLINE_FRIEND_REQUEST', {}, {
store.mailbox.sendTo('DECLINE_FRIEND_REQUEST', {
displayName: store.proxy['cryptpad.username']
}, {
channel: msg.content.notifications,
curvePublic: msg.content.curvePublic
}, function (obj) {