mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
web/statestore: fix updating view when viewing redacted events
This commit is contained in:
parent
b48c285f5c
commit
91fa59d5ba
1 changed files with 6 additions and 1 deletions
|
@ -353,7 +353,12 @@ export class RoomStateStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
setViewingRedacted(evt: MemDBEvent, view: boolean) {
|
setViewingRedacted(evt: MemDBEvent, view: boolean) {
|
||||||
evt.viewing_redacted = view
|
const modified = {
|
||||||
|
...evt,
|
||||||
|
viewing_redacted: view,
|
||||||
|
}
|
||||||
|
this.eventsByRowID.set(evt.rowid, modified)
|
||||||
|
this.eventsByID.set(evt.event_id, modified)
|
||||||
this.eventSubs.notify(evt.event_id)
|
this.eventSubs.notify(evt.event_id)
|
||||||
this.notifyTimelineSubscribers()
|
this.notifyTimelineSubscribers()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue