event-index: Use camel case for the user/device id.
This commit is contained in:
parent
5989a21dfb
commit
860b1b46e0
2 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue