Does not display unwanted archived notifications

This commit is contained in:
ClemDee
2019-07-02 13:42:08 +02:00
parent b713b68e31
commit fc9414b094
2 changed files with 15 additions and 13 deletions

View File

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