mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-04 14:19:13 -04:00
Merge remote branch 'upstream/master'
This commit is contained in:
commit
916e900cf3
1 changed files with 5 additions and 10 deletions
|
@ -136,7 +136,7 @@ exports.handleDisconnect = function(client)
|
|||
{
|
||||
if(pad2sessions[sessionPad][i] == client.id)
|
||||
{
|
||||
delete pad2sessions[sessionPad][i];
|
||||
pad2sessions[sessionPad].splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -809,15 +809,10 @@ function handleClientReady(client, message)
|
|||
//Send the clientVars to the Client
|
||||
client.json.send(clientVars);
|
||||
|
||||
//sometimes the client disconnects very early and the session of it is already removed
|
||||
//thats why we have to check that case
|
||||
if(sessioninfos[client.id] !== undefined)
|
||||
{
|
||||
//Save the revision and the author id in sessioninfos
|
||||
sessioninfos[client.id].rev = pad.getHeadRevisionNumber();
|
||||
sessioninfos[client.id].author = author;
|
||||
}
|
||||
|
||||
//Save the revision and the author id in sessioninfos
|
||||
sessioninfos[client.id].rev = pad.getHeadRevisionNumber();
|
||||
sessioninfos[client.id].author = author;
|
||||
|
||||
//prepare the notification for the other users on the pad, that this user joined
|
||||
var messageToTheOtherUsers = {
|
||||
"type": "COLLABROOM",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue