diff options
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js index 52c608b..5bd5f11 100644 --- a/lib/util.js +++ b/lib/util.js @@ -142,8 +142,8 @@ u.isMsgReadable = function (msg) { } u.isMsgEncrypted = function (msg) { - var c = msg && msg.value.content - return typeof c === 'string' + var value = msg && msg.value + return value && (value.private || typeof value.content === 'string') } u.pullConcat = function (cb) { |