From 0dc66e629ee55a17eeb5f3f42159c5e2c27b7393 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 1 Apr 2021 02:21:17 -0400 Subject: [PATCH] collab_client: Rename function for consistency --- src/static/js/collab_client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/static/js/collab_client.js b/src/static/js/collab_client.js index a9711dfd4..1c00d686a 100644 --- a/src/static/js/collab_client.js +++ b/src/static/js/collab_client.js @@ -356,7 +356,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, pad) => { const getConnectedUsers = () => Object.values(userSet); - const tellAceAboutHistoricalAuthors = (hadata) => { + const addHistoricalAuthors = (hadata) => { for (const [author, data] of Object.entries(hadata)) { if (!userSet[author]) { tellAceAuthorInfo(author, data.colorId, true); @@ -470,7 +470,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, pad) => { getCurrentRevisionNumber, getMissedChanges, callWhenNotCommitting, - addHistoricalAuthors: tellAceAboutHistoricalAuthors, + addHistoricalAuthors, setChannelState, setStateIdle, setIsPendingRevision, @@ -478,7 +478,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, pad) => { get commitDelay() { return commitDelay; }, }; - tellAceAboutHistoricalAuthors(serverVars.historicalAuthorData); + addHistoricalAuthors(serverVars.historicalAuthorData); tellAceActiveAuthorInfo(initialUserInfo); editor.setProperty('userAuthor', userId);