git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit c6fc57f70589db3b77746a523628b797dae2341f

Show notification for post on issue of own repo

Charles Lehner committed on 8/2/2016, 12:43:13 AM
Parent: 03c0b16c9cda391b8331075baf79935aa18e67c8

Files changed

modules/notifications.jschanged
modules/notifications.jsView
@@ -31,8 +31,10 @@
3131 function isOurMsg(id, cb) {
3232 sbot_get(id, function (err, msg) {
3333 if (err && err.name == 'NotFoundError') cb(null, false)
3434 else if (err) cb(err)
35+ else if (msg.content.type === 'issue' || msg.content.type === 'project')
36+ isOurMsg(msg.content.repo || msg.content.project, cb)
3537 else cb(err, msg.author in ourIds)
3638 })
3739 }
3840

Built with git-ssb-web