Replay history in order

This commit is contained in:
yflory
2020-04-02 10:21:12 +02:00
parent 44d05d1756
commit 1169156e55
5 changed files with 165 additions and 6 deletions

View File

@@ -1880,7 +1880,15 @@ define([
if (msg) {
msg = msg.replace(/cp\|(([A-Za-z0-9+\/=]+)\|)?/, '');
//var decryptedMsg = crypto.decrypt(msg, true);
msgs.push(msg);
if (data.debug) {
msgs.push({
msg: msg,
author: parsed[1][1],
time: parsed[1][5]
});
} else {
msgs.push(msg);
}
}
};
network.on('message', onMsg);