mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
collab_client: Rename function for consistency
This commit is contained in:
parent
f26cc7f707
commit
0dc66e629e
1 changed files with 3 additions and 3 deletions
|
@ -356,7 +356,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, pad) => {
|
||||||
|
|
||||||
const getConnectedUsers = () => Object.values(userSet);
|
const getConnectedUsers = () => Object.values(userSet);
|
||||||
|
|
||||||
const tellAceAboutHistoricalAuthors = (hadata) => {
|
const addHistoricalAuthors = (hadata) => {
|
||||||
for (const [author, data] of Object.entries(hadata)) {
|
for (const [author, data] of Object.entries(hadata)) {
|
||||||
if (!userSet[author]) {
|
if (!userSet[author]) {
|
||||||
tellAceAuthorInfo(author, data.colorId, true);
|
tellAceAuthorInfo(author, data.colorId, true);
|
||||||
|
@ -470,7 +470,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, pad) => {
|
||||||
getCurrentRevisionNumber,
|
getCurrentRevisionNumber,
|
||||||
getMissedChanges,
|
getMissedChanges,
|
||||||
callWhenNotCommitting,
|
callWhenNotCommitting,
|
||||||
addHistoricalAuthors: tellAceAboutHistoricalAuthors,
|
addHistoricalAuthors,
|
||||||
setChannelState,
|
setChannelState,
|
||||||
setStateIdle,
|
setStateIdle,
|
||||||
setIsPendingRevision,
|
setIsPendingRevision,
|
||||||
|
@ -478,7 +478,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, pad) => {
|
||||||
get commitDelay() { return commitDelay; },
|
get commitDelay() { return commitDelay; },
|
||||||
};
|
};
|
||||||
|
|
||||||
tellAceAboutHistoricalAuthors(serverVars.historicalAuthorData);
|
addHistoricalAuthors(serverVars.historicalAuthorData);
|
||||||
tellAceActiveAuthorInfo(initialUserInfo);
|
tellAceActiveAuthorInfo(initialUserInfo);
|
||||||
|
|
||||||
editor.setProperty('userAuthor', userId);
|
editor.setProperty('userAuthor', userId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue