git ssb

10+

Matt McKegg / patchwork



Commit f6487e3f937bcb47dc60546afcec2e728660b0db

rollup: make sure root message exists before trying to unbox it

Matt McKegg committed on 12/12/2017, 9:10:28 PM
Parent: 339a023bbaaa61ba00aff4dafebc56391660606d

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -281,9 +281,9 @@
281281 return paramap((msg, cb) => {
282282 var rootId = api.message.sync.root(msg)
283283 if (rootId) {
284284 api.sbot.async.get(rootId, (_, value) => {
285- if (typeof value.content === 'string') {
285 + if (value && typeof value.content === 'string') {
286286 // unbox private message
287287 value = api.message.sync.unbox(value)
288288 }
289289 cb(null, extend(msg, {

Built with git-ssb-web