mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix typos in stores
This commit is contained in:
parent
aeb2f5402a
commit
4077f57afb
@ -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 New Issue
Block a user