forked from mystiq/hydrogen-web
fix typos in stores
This commit is contained in:
parent
aeb2f5402a
commit
4077f57afb
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue