strip both old and new style checkpoint labels before decrypting when fetching history
This commit is contained in:
1 parent
3eb199bca7
commit
ac09ba65ce
1 file changed
+1
-1
@@ -1001,7 +1001,7 @@ define([
|
||||
if (parsed[1][3] !== data.channel) { return; }
|
||||
msg = parsed[1][4];
|
||||
if (msg) {
|
||||
msg = msg.replace(/^cp\|/, '');
|
||||
msg = msg.replace(/cp\|(([A-Za-z0-9+\/=]+)\|)?/, '');
|
||||
//var decryptedMsg = crypto.decrypt(msg, true);
|
||||
msgs.push(msg);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user