git ssb

10+

Matt McKegg / patchwork



Commit 769b943fffb01b5b2627c5b9a6cfcadd2bf8bf14

fix private replies not notifying new message

Matt McKegg committed on 12/4/2017, 5:13:02 AM
Parent: 7ad6c4c93a2a569d77fe037b75fe50be89343492

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -23,8 +23,9 @@
2323 'app.sync.externalHandler': 'first',
2424 'message.html.canRender': 'first',
2525 'message.html.render': 'first',
2626 'message.sync.isBlocked': 'first',
27 + 'message.sync.unbox': 'first',
2728 'profile.html.person': 'first',
2829 'message.html.link': 'first',
2930 'message.sync.root': 'first',
3031 'feed.pull.rollup': 'first',
@@ -276,8 +277,12 @@
276277 return paramap((msg, cb) => {
277278 var rootId = api.message.sync.root(msg)
278279 if (rootId) {
279280 api.sbot.async.get(rootId, (_, value) => {
281 + if (typeof value.content === 'string') {
282 + // unbox private message
283 + value = api.message.sync.unbox(value)
284 + }
280285 cb(null, extend(msg, {
281286 root: {key: rootId, value}
282287 }))
283288 })

Built with git-ssb-web