Fix missing title in notification history

This commit is contained in:
yflory
2019-11-19 15:33:12 +01:00
parent 741acbd6ef
commit 0044d622f1
3 changed files with 7 additions and 1 deletions

View File

@@ -93,6 +93,10 @@ define([
return ud.content.hash === data.content.hash;
});
notifsData.push(data);
if (data.content.msg.type === 'REQUEST_PAD_ACCESS') { return; } // FIXME find a way to display this notifications wihtout knowing the title
if (data.content.msg.type === 'INVITE_TO_TEAM_ANSWER') { console.log(data); }
if (data.content.msg.type === 'INVITE_TO_TEAM_ANSWER'
&& !data.content.msg.content.teamName) { return; } // FIXME find a way to display this notifications wihtout knowing the team name
var el = common.mailbox.createElement(data);
var time = new Date(data.content.time);
$(el).find(".cp-notification-content").append(h("span.notification-time", time.toLocaleString()));