Does not display unwanted archived notifications
This commit is contained in:
@@ -26,14 +26,14 @@ define([
|
||||
var content = data.content;
|
||||
var msg = content.msg;
|
||||
|
||||
// Check authenticity
|
||||
if (msg.author !== msg.content.curvePublic) { return; }
|
||||
|
||||
// Display the notification
|
||||
content.getFormatText = function () {
|
||||
return Messages._getKey('friendRequest_notification', [msg.content.displayName || Messages.anonymous]);
|
||||
};
|
||||
|
||||
// Check authenticity
|
||||
if (msg.author !== msg.content.curvePublic) { return; }
|
||||
|
||||
// if not archived, add handlers
|
||||
if (!content.archived) {
|
||||
content.handler = function () {
|
||||
|
||||
Reference in New Issue
Block a user