Commit 91317370bd1d6eeaea021e4e5d36a9b90a2c5a51
fix private messges not notifying
Matt McKegg committed on 7/20/2018, 7:40:18 AMParent: 16cfcf96425f6aeedf915c191a8ebc40977b0642
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | |||
---|---|---|---|
@@ -335,9 +335,10 @@ | |||
335 | 335 … | return paramap((msg, cb) => { | |
336 | 336 … | var rootId = api.message.sync.root(msg) | |
337 | 337 … | if (rootId) { | |
338 | 338 … | 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') { | ||
340 | 341 … | // unbox private message | |
341 | 342 … | value = api.message.sync.unbox(value) | |
342 | 343 … | } | |
343 | 344 … | cb(null, extend(msg, { |
Built with git-ssb-web