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);