mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
this is probably bad, please sanity check
This commit is contained in:
parent
11a8295150
commit
6e46a53288
1 changed files with 6 additions and 1 deletions
|
@ -926,10 +926,15 @@ function handleClientReady(client, message)
|
|||
})
|
||||
|
||||
//If this is a reconnect, we don't have to send the client the ClientVars again
|
||||
if(message.reconnect == "not accepting true here makes everything work fine but it also sends whole atext which is bad")
|
||||
//if(message.reconnect == "not accepting true here makes everything work fine but it also sends whole atext which is bad")
|
||||
if(message.reconnect == true)
|
||||
{
|
||||
//Save the revision in sessioninfos, we take the revision from the info the client send to us
|
||||
sessioninfos[client.id].rev = message.client_rev;
|
||||
//Join the pad and start receiving updates
|
||||
client.join(padIds.padId);
|
||||
//Save the current revision in sessioninfos, should be the same as in clientVars
|
||||
sessioninfos[client.id].rev = pad.getHeadRevisionNumber(); // I'm not sure this is a great idea here
|
||||
}
|
||||
//This is a normal first connect
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue