Commit 7f0e32707cd24ca1c8721a7b8a6028e13958630e
include people following you in mentions
Matt McKegg committed on 10/28/2017, 12:29:51 PMParent: 148b12cf2f02a4589bf31b606578d7ffd08e7028
Files changed
modules/page/html/render/mentions.js | changed |
modules/page/html/render/notifications.js | deleted |
modules/page/html/render/mentions.js | ||
---|---|---|
@@ -18,14 +18,14 @@ | ||
18 | 18 | }) |
19 | 19 | |
20 | 20 | // scoped |
21 | 21 | function mentionFilter (msg) { |
22 | - if (Array.isArray(msg.value.content.mentions)) { | |
23 | - if (msg.value.content.mentions.some(mention => { | |
24 | - return mention && mention.link === id | |
25 | - })) { | |
26 | - return 'mention' | |
27 | - } | |
22 | + if (Array.isArray(msg.value.content.mentions) && msg.value.content.mentions.some(mention => { | |
23 | + return mention && mention.link === id | |
24 | + })) { | |
25 | + return 'mention' | |
26 | + } else if (msg.value.content.type === 'contact') { | |
27 | + return true | |
28 | 28 | } |
29 | 29 | } |
30 | 30 | }) |
31 | 31 | } |
modules/page/html/render/notifications.js |
---|
Built with git-ssb-web