From 860b1b46e0440293af0460434cf16b1760e3288c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 13 Oct 2020 17:03:58 +0200 Subject: [PATCH] event-index: Use camel case for the user/device id. --- src/indexing/BaseEventIndexManager.ts | 6 +++--- src/indexing/EventIndexPeg.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/indexing/BaseEventIndexManager.ts b/src/indexing/BaseEventIndexManager.ts index df14f84622..2474406618 100644 --- a/src/indexing/BaseEventIndexManager.ts +++ b/src/indexing/BaseEventIndexManager.ts @@ -105,13 +105,13 @@ export default abstract class BaseEventIndexManager { /** * Initialize the event index for the given user. * - * @param {string} user_id The event that should be added to the index. - * @param {string} device_id The profile of the event sender at the + * @param {string} userId The event that should be added to the index. + * @param {string} deviceId The profile of the event sender at the * * @return {Promise} A promise that will resolve when the event index is * initialized. */ - async initEventIndex(user_id: string, device_id: string): Promise { + async initEventIndex(userId: string, deviceId: string): Promise { throw new Error("Unimplemented"); } diff --git a/src/indexing/EventIndexPeg.js b/src/indexing/EventIndexPeg.js index 6acc6caa10..443daa8f43 100644 --- a/src/indexing/EventIndexPeg.js +++ b/src/indexing/EventIndexPeg.js @@ -73,11 +73,11 @@ class EventIndexPeg { const indexManager = PlatformPeg.get().getEventIndexingManager(); const client = MatrixClientPeg.get(); - const user_id = client.getUserId(); - const device_id = client.getDeviceId(); + const userId = client.getUserId(); + const deviceId = client.getDeviceId(); try { - await indexManager.initEventIndex(user_id, device_id); + await indexManager.initEventIndex(userId, deviceId); const userVersion = await indexManager.getUserVersion(); const eventIndexIsEmpty = await indexManager.isEventIndexEmpty(); @@ -88,7 +88,7 @@ class EventIndexPeg { await indexManager.closeEventIndex(); await this.deleteEventIndex(); - await indexManager.initEventIndex(user_id, device_id); + await indexManager.initEventIndex(userId, deviceId); await indexManager.setUserVersion(INDEX_VERSION); }