Commit 0839379f2aeeb22bd18fed24094f50e96f13421a
fix infinite load error when opening other peoples' private messages
fixes #577Matt McKegg committed on 7/1/2017, 10:18:04 AM
Parent: 8d5816a51b85c97f3b7f60b7b29612be98626a6e
Files changed
modules/page/html/render/message.js | changed |
modules/page/html/render/message.js | ||
---|---|---|
@@ -46,8 +46,14 @@ | ||
46 | 46 … | if (typeof value.content === 'string') { |
47 | 47 … | value = api.message.sync.unbox(value) |
48 | 48 … | } |
49 | 49 … | |
50 … | + if (!value) { | |
51 … | + return result.set(h('PageHeading', [ | |
52 … | + h('h1', 'Cannot display message.') | |
53 … | + ])) | |
54 … | + } | |
55 … | + | |
50 | 56 … | // what happens in private stays in private! |
51 | 57 … | meta.recps.set(value.content.recps) |
52 | 58 … | |
53 | 59 … | var isReply = !!value.content.root |
Built with git-ssb-web