Fix avatar in notification history
This commit is contained in:
parent
9e60c8eb93
commit
9ba786df4c
@ -101,7 +101,11 @@ define([
|
|||||||
var time = new Date(data.content.time);
|
var time = new Date(data.content.time);
|
||||||
$(el).find(".cp-notification-content").append(h("span.notification-time", time.toLocaleString()));
|
$(el).find(".cp-notification-content").append(h("span.notification-time", time.toLocaleString()));
|
||||||
$(el).addClass("cp-app-notification-archived");
|
$(el).addClass("cp-app-notification-archived");
|
||||||
$(el).toggle(!isDataUnread);
|
if (isDataUnread) {
|
||||||
|
$(el).hide();
|
||||||
|
} else {
|
||||||
|
$(el).css('display', 'flex');
|
||||||
|
}
|
||||||
$(notifsList).append(el);
|
$(notifsList).append(el);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -140,7 +144,7 @@ define([
|
|||||||
addNotification(data, el);
|
addNotification(data, el);
|
||||||
},
|
},
|
||||||
onViewed: function (data) {
|
onViewed: function (data) {
|
||||||
$('.cp-app-notification-archived[data-hash="' + data.hash + '"]').show();
|
$('.cp-app-notification-archived[data-hash="' + data.hash + '"]').css('display', 'flex');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user