From 7657128a60a5e1673d8a0cfb77ef93532decada7 Mon Sep 17 00:00:00 2001 From: RootSec Date: Thu, 17 Oct 2019 21:25:42 +0200 Subject: [PATCH] Update db_level.js --- socketserver/db_level.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socketserver/db_level.js b/socketserver/db_level.js index bb131bf..b6c2f29 100644 --- a/socketserver/db_level.js +++ b/socketserver/db_level.js @@ -601,7 +601,7 @@ LevelDB.prototype.getConversations = function (uid, callback) { this.PmDB.createReadStream() .on('data', function (data) { data.key = data.key.toString(); - if (data.key.indexOf(':') == -1 || (uids = data.key.split(':') + "").indexOf(uid) == -1) return; + if (data.key.indexOf(':') == -1 || (uids = data.key.split(':')).indexOf(uid) == -1) return; try { var convo = JSON.parse(data.value);