mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-21 17:51:38 +01:00
fix some lint and comment
This commit is contained in:
parent
934839574e
commit
46bfab3eb7
@ -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…
x
Reference in New Issue
Block a user