From a28c5816662d6cac9e8b80e603a5f4546bd846a6 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Wed, 25 Sep 2019 14:11:34 +1000 Subject: [PATCH] return early if signature is not a string --- js/modules/loki_app_dot_net_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index c028810f8..142fc5e44 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -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; }