return early if signature is not a string

pull/518/head
sachaaaaa 6 years ago
parent a931b2491a
commit a28c581666

@ -602,7 +602,7 @@ class LokiPublicChannelAPI {
const noteValue = adnMessage.annotations[0].value;
// signatures now required
if (!noteValue.sig) {
if (!noteValue.sig || typeof noteValue.sig !== 'string') {
return false;
}

Loading…
Cancel
Save