Fix last known hash sent to onlyoffice (it is already known...)

pull/1/head
yflory 6 years ago
parent 0c4c9dd283
commit 07cd0b21b6

@ -127,7 +127,10 @@ define([
// Keep only the history for our channel // Keep only the history for our channel
if (parsed[3] !== channel) { return; } if (parsed[3] !== channel) { return; }
chan.lastKnownHash = msg.slice(0,64); var hash = msg.slice(0,64);
if (hash === chan.lastKnownHash || hash === chan.lastCpHash) { return; }
chan.lastKnownHash = hash;
ctx.emit('MESSAGE', msg, chan.clients); ctx.emit('MESSAGE', msg, chan.clients);
chan.history.push(msg); chan.history.push(msg);
}); });

Loading…
Cancel
Save