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; flex: 1;
min-width: 0; min-width: 0;
p { p {
word-break: break-all; word-break: break-word;
} }
&.cp-clickable { &.cp-clickable {
cursor: pointer; cursor: pointer;

@ -946,7 +946,9 @@ define([
return; return;
} }
// Otherwise, just remove the notification // 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, channel: msg.content.notifications,
curvePublic: msg.content.curvePublic curvePublic: msg.content.curvePublic
}, function (obj) { }, function (obj) {

Loading…
Cancel
Save