Fix last known hash sent to onlyoffice (it is already known...)
This commit is contained in:
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…
x
Reference in New Issue
Block a user