linting
This commit is contained in:
parent
b43309f0c3
commit
590803f0a4
1 changed files with 18 additions and 18 deletions
|
|
@ -87,27 +87,27 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url.protocol === "flotilla:" && url.host === "shortcut") {
|
if (url.protocol === "flotilla:" && url.host === "shortcut") {
|
||||||
if (!core.app.get().user) return
|
if (core.app.get().user) {
|
||||||
|
switch (url.pathname) {
|
||||||
|
case "/messages":
|
||||||
|
goToChat()
|
||||||
|
break
|
||||||
|
case "/search": {
|
||||||
|
const modal = getModal()
|
||||||
|
|
||||||
switch (url.pathname) {
|
if (modal?.component !== Search) {
|
||||||
case "/messages":
|
pushModal(Search, {}, {replaceState: Boolean(modal)})
|
||||||
goToChat()
|
}
|
||||||
break
|
break
|
||||||
case "/search": {
|
|
||||||
const modal = getModal()
|
|
||||||
|
|
||||||
if (modal?.component !== Search) {
|
|
||||||
pushModal(Search, {}, {replaceState: Boolean(modal)})
|
|
||||||
}
|
}
|
||||||
break
|
case "/spaces":
|
||||||
|
navigate("/spaces")
|
||||||
|
break
|
||||||
|
case "/inbox":
|
||||||
|
clearModals()
|
||||||
|
goToHome()
|
||||||
|
break
|
||||||
}
|
}
|
||||||
case "/spaces":
|
|
||||||
navigate("/spaces")
|
|
||||||
break
|
|
||||||
case "/inbox":
|
|
||||||
clearModals()
|
|
||||||
goToHome()
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue