Fix empty username when declining a friend request

pull/1/head
yflory 6 years ago
parent 70e65721cd
commit 4240d1c0d5

@ -16,7 +16,7 @@
flex: 1;
min-width: 0;
p {
word-break: break-all;
word-break: break-word;
}
&.cp-clickable {
cursor: pointer;

@ -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) {

Loading…
Cancel
Save