17 lines
272 B
JavaScript
17 lines
272 B
JavaScript
|
export default class RoomStateStore {
|
||
|
constructor(idbStore) {
|
||
|
this._roomStateStore = idbStore;
|
||
|
}
|
||
|
|
||
|
async getEvents(type) {
|
||
|
|
||
|
}
|
||
|
|
||
|
async getEventsForKey(type, stateKey) {
|
||
|
|
||
|
}
|
||
|
|
||
|
async setStateEvent(roomId, event) {
|
||
|
return this._roomStateStore.put({roomId, event});
|
||
|
}
|
||
|
}
|