mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 03:02:03 +01:00
working messages
This commit is contained in:
parent
68eaa09708
commit
a6cbb4af40
1 changed files with 2 additions and 5 deletions
|
@ -805,8 +805,7 @@ exports.updatePadClients = function(pad, callback)
|
||||||
|
|
||||||
if(author == sessioninfos[sid].author)
|
if(author == sessioninfos[sid].author)
|
||||||
{
|
{
|
||||||
// client.json.send({"type":"COLLABROOM","data":{type:"ACCEPT_COMMIT", newRev:r}});
|
client.json.send({"type":"COLLABROOM","data":{type:"ACCEPT_COMMIT", newRev:r}});
|
||||||
socketio.in(pad).send({"type":"COLLABROOM","data":{type:"ACCEPT_COMMIT", newRev:r}});
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -821,9 +820,7 @@ exports.updatePadClients = function(pad, callback)
|
||||||
timeDelta: currentTime - sessioninfos[sid].time
|
timeDelta: currentTime - sessioninfos[sid].time
|
||||||
}};
|
}};
|
||||||
|
|
||||||
// client.json.send(wireMsg);
|
client.json.send(wireMsg);
|
||||||
socketio.in(pad).send({"type":"COLLABROOM","data":{type:"ACCEPT_COMMIT", newRev:r}});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sessioninfos[sid].time = currentTime;
|
sessioninfos[sid].time = currentTime;
|
||||||
|
|
Loading…
Reference in a new issue