From 4240d1c0d5ad4b2919940c6f65eaf5472143bd22 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 23 May 2019 16:02:21 +0200 Subject: [PATCH] Fix empty username when declining a friend request --- customize.dist/src/less2/include/notifications.less | 2 +- www/common/outer/async-store.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/customize.dist/src/less2/include/notifications.less b/customize.dist/src/less2/include/notifications.less index b0d6b22ed..a65870905 100644 --- a/customize.dist/src/less2/include/notifications.less +++ b/customize.dist/src/less2/include/notifications.less @@ -16,7 +16,7 @@ flex: 1; min-width: 0; p { - word-break: break-all; + word-break: break-word; } &.cp-clickable { cursor: pointer; diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index d26f5ff42..2499e1007 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -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) {