Commit 769b943fffb01b5b2627c5b9a6cfcadd2bf8bf14
fix private replies not notifying new message
Matt McKegg committed on 12/4/2017, 5:13:02 AMParent: 7ad6c4c93a2a569d77fe037b75fe50be89343492
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -23,8 +23,9 @@ | ||
23 | 23 | 'app.sync.externalHandler': 'first', |
24 | 24 | 'message.html.canRender': 'first', |
25 | 25 | 'message.html.render': 'first', |
26 | 26 | 'message.sync.isBlocked': 'first', |
27 | + 'message.sync.unbox': 'first', | |
27 | 28 | 'profile.html.person': 'first', |
28 | 29 | 'message.html.link': 'first', |
29 | 30 | 'message.sync.root': 'first', |
30 | 31 | 'feed.pull.rollup': 'first', |
@@ -276,8 +277,12 @@ | ||
276 | 277 | return paramap((msg, cb) => { |
277 | 278 | var rootId = api.message.sync.root(msg) |
278 | 279 | if (rootId) { |
279 | 280 | api.sbot.async.get(rootId, (_, value) => { |
281 | + if (typeof value.content === 'string') { | |
282 | + // unbox private message | |
283 | + value = api.message.sync.unbox(value) | |
284 | + } | |
280 | 285 | cb(null, extend(msg, { |
281 | 286 | root: {key: rootId, value} |
282 | 287 | })) |
283 | 288 | }) |
Built with git-ssb-web