git ssb

10+

Matt McKegg / patchwork



Commit 0839379f2aeeb22bd18fed24094f50e96f13421a

fix infinite load error when opening other peoples' private messages

fixes #577
Matt McKegg committed on 7/1/2017, 10:18:04 AM
Parent: 8d5816a51b85c97f3b7f60b7b29612be98626a6e

Files changed

modules/page/html/render/message.jschanged
modules/page/html/render/message.jsView
@@ -46,8 +46,14 @@
4646 if (typeof value.content === 'string') {
4747 value = api.message.sync.unbox(value)
4848 }
4949
50 + if (!value) {
51 + return result.set(h('PageHeading', [
52 + h('h1', 'Cannot display message.')
53 + ]))
54 + }
55 +
5056 // what happens in private stays in private!
5157 meta.recps.set(value.content.recps)
5258
5359 var isReply = !!value.content.root

Built with git-ssb-web