mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 19:06:15 -04:00
collab_client: Set CONNECTED from pad.js
This commit is contained in:
parent
966ba54874
commit
05f6e196ae
2 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,6 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, options, _pad)
|
|||
editor.setBaseAttributedText(serverVars.initialAttributedText, serverVars.apool);
|
||||
editor.setUserChangeNotificationCallback(handleUserChanges);
|
||||
|
||||
setChannelState('CONNECTED');
|
||||
return self;
|
||||
};
|
||||
|
||||
|
|
|
@ -521,6 +521,7 @@ const pad = {
|
|||
pad.collabClient.setOnClientMessage(pad.handleClientMessage);
|
||||
pad.collabClient.setOnChannelStateChange(pad.handleChannelStateChange);
|
||||
pad.collabClient.setOnInternalAction(pad.handleCollabAction);
|
||||
pad.collabClient.setChannelState('CONNECTED');
|
||||
|
||||
// load initial chat-messages
|
||||
if (clientVars.chatHead !== -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue