Decline a friend request

This commit is contained in:
yflory
2019-05-23 15:25:05 +02:00
parent 67e39253cf
commit 06a07d069e
5 changed files with 25 additions and 3 deletions

View File

@@ -30,7 +30,15 @@ define([
var content = data.content;
var msg = content.msg;
$(el).find('.cp-notification-content p')
.html('Friend request accepted: <b>'+msg.content.displayName+'</b>');
.html(Messages._getKey('friendRequest_accepted', [msg.content.displayName])
$(el).find('.cp-notification-dismiss').css('display', 'flex');
};
handlers['DECLINE_FRIEND_REQUEST'] = function (common, data, el) {
var content = data.content;
var msg = content.msg;
$(el).find('.cp-notification-content p')
.html(Messages._getKey('friendRequest_declined', [msg.content.displayName])
$(el).find('.cp-notification-dismiss').css('display', 'flex');
};