forked from mystiq/hydrogen-web
fix some lint and comment
This commit is contained in:
parent
934839574e
commit
46bfab3eb7
3 changed files with 1 additions and 5 deletions
|
@ -122,6 +122,7 @@ export class EventEntry extends BaseEventEntry {
|
||||||
if (redactionEvent) {
|
if (redactionEvent) {
|
||||||
return redactionEvent.content?.reason;
|
return redactionEvent.content?.reason;
|
||||||
}
|
}
|
||||||
|
// fall back to local echo reason
|
||||||
return super.redactionReason;
|
return super.redactionReason;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -26,10 +26,6 @@ export class RoomStateStore {
|
||||||
this._roomStateStore = idbStore;
|
this._roomStateStore = idbStore;
|
||||||
}
|
}
|
||||||
|
|
||||||
getAllForType(roomId, type) {
|
|
||||||
throw new Error("unimplemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
get(roomId, type, stateKey) {
|
get(roomId, type, stateKey) {
|
||||||
const key = encodeKey(roomId, type, stateKey);
|
const key = encodeKey(roomId, type, stateKey);
|
||||||
return this._roomStateStore.get(key);
|
return this._roomStateStore.get(key);
|
||||||
|
|
|
@ -15,7 +15,6 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export async function poll(fn) {
|
export async function poll(fn) {
|
||||||
let result;
|
|
||||||
do {
|
do {
|
||||||
const result = fn();
|
const result = fn();
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
Loading…
Reference in a new issue