collab_client: Set CONNECTED from pad.js

This commit is contained in:
Richard Hansen 2021-03-30 18:46:13 -04:00
parent 966ba54874
commit 05f6e196ae
2 changed files with 1 additions and 1 deletions

View file

@ -498,7 +498,6 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, options, _pad)
editor.setBaseAttributedText(serverVars.initialAttributedText, serverVars.apool);
editor.setUserChangeNotificationCallback(handleUserChanges);
setChannelState('CONNECTED');
return self;
};

View file

@ -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) {