fix typos in stores

This commit is contained in:
Bruno Windels 2020-08-31 16:09:13 +02:00
parent aeb2f5402a
commit 4077f57afb
3 changed files with 4 additions and 4 deletions

View file

@ -36,6 +36,6 @@ export class DeviceIdentityStore {
set(deviceIdentity) {
deviceIdentity.key = encodeKey(deviceIdentity.userId, deviceIdentity.deviceId);
return this._store.set(deviceIdentity);
return this._store.put(deviceIdentity);
}
}

View file

@ -50,7 +50,7 @@ export class RoomMemberStore {
const userIds = [];
const range = IDBKeyRange.lowerBound(encodeKey(roomId, ""));
await this._roomMembersStore.iterateKeys(range, key => {
const decodedKey = decodedKey(key);
const decodedKey = decodeKey(key);
// prevent running into the next room
if (decodedKey.roomId === roomId) {
userIds.push(decodedKey.userId);

View file

@ -24,10 +24,10 @@ export class UserIdentityStore {
}
set(userIdentity) {
return this._store.set(userIdentity);
this._store.put(userIdentity);
}
remove(userId) {
return this._eventStore.delete(userId);
return this._store.delete(userId);
}
}