git ssb

30+

cel / git-ssb-web



Commit 8df9a55e12e25a2e55af110f3c01603e65aa3c47

Attempt to fix crash

cel committed on 1/17/2017, 1:27:41 AM
Parent: c5fe26034b05e56f1491a4faf490fb63c829607e

Files changed

lib/util.jschanged
lib/util.jsView
@@ -198,9 +198,9 @@
198198 u.decryptMessage = function (sbot, msg, cb) {
199199 var c = msg && msg.value && msg.value.content
200200 if (c && typeof c === 'string' && c.slice(-4) === '.box') {
201201 sbot.private.unbox(msg.value.content, function (err, content) {
202- if (err) return cb(null, msg) // leave message encrypted
202 + if (err || !content) return cb(null, msg) // leave message encrypted
203203 var msg1 = {}
204204 for (var k in msg) msg1[k] = msg[k]
205205 msg1.value = {}
206206 for (var j in msg.value) msg1.value[j] = msg.value[j]

Built with git-ssb-web