forked from Mirrors/gomuks
web/mainscreen: fix handling popstate event to null state
This commit is contained in:
parent
a0bc1b0d17
commit
e750c19e8a
1 changed files with 2 additions and 2 deletions
|
@ -294,8 +294,8 @@ const MainScreen = () => {
|
||||||
const roomID = evt.state?.room_id ?? null
|
const roomID = evt.state?.room_id ?? null
|
||||||
if (roomID !== client.store.activeRoomID) {
|
if (roomID !== client.store.activeRoomID) {
|
||||||
context.setActiveRoom(roomID, {
|
context.setActiveRoom(roomID, {
|
||||||
alias: ensureString(evt?.state.source_alias) || undefined,
|
alias: ensureString(evt.state?.source_alias) || undefined,
|
||||||
via: ensureStringArray(evt?.state.source_via),
|
via: ensureStringArray(evt.state?.source_via),
|
||||||
}, false)
|
}, false)
|
||||||
}
|
}
|
||||||
context.setRightPanel(evt.state?.right_panel ?? null, false)
|
context.setRightPanel(evt.state?.right_panel ?? null, false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue