git ssb

10+

Matt McKegg / patchwork



Commit 91317370bd1d6eeaea021e4e5d36a9b90a2c5a51

fix private messges not notifying

Matt McKegg committed on 7/20/2018, 7:40:18 AM
Parent: 16cfcf96425f6aeedf915c191a8ebc40977b0642

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -335,9 +335,10 @@
335335 return paramap((msg, cb) => {
336336 var rootId = api.message.sync.root(msg)
337337 if (rootId) {
338338 api.sbot.async.get(rootId, (_, value) => {
339- if (value && value.private) {
339 + // because we're doing a raw get (not from flume index), we need to use the old private message check
340 + if (value && typeof value.content === 'string') {
340341 // unbox private message
341342 value = api.message.sync.unbox(value)
342343 }
343344 cb(null, extend(msg, {

Built with git-ssb-web