mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
pluginfw: Make the NEW_CHANGES payload include the message in handleClientMessage
This commit is contained in:
parent
85383a316d
commit
045ac70db8
1 changed files with 4 additions and 0 deletions
|
@ -309,6 +309,7 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
rev = newRev;
|
rev = newRev;
|
||||||
|
|
||||||
editor.applyChangesToBase(changeset, author, apool);
|
editor.applyChangesToBase(changeset, author, apool);
|
||||||
}
|
}
|
||||||
else if (msg.type == "ACCEPT_COMMIT")
|
else if (msg.type == "ACCEPT_COMMIT")
|
||||||
|
@ -508,6 +509,9 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
|
||||||
if(msg.type.indexOf("USER_") > -1) {
|
if(msg.type.indexOf("USER_") > -1) {
|
||||||
msg.payload = msg.userInfo;
|
msg.payload = msg.userInfo;
|
||||||
}
|
}
|
||||||
|
// Similar for NEW_CHANGES
|
||||||
|
if(msg.type === "NEW_CHANGES") msg.payload = msg;
|
||||||
|
|
||||||
hooks.callAll('handleClientMessage_' + msg.type, {payload: msg.payload});
|
hooks.callAll('handleClientMessage_' + msg.type, {payload: msg.payload});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue