fix: ignore bot and server invites in layout paths

This commit is contained in:
Paul Makles 2022-01-10 20:38:13 +00:00
parent 5768ff7c2f
commit 90a53452e8

View file

@ -169,6 +169,9 @@ export default class Layout implements Store, Persistent<Data> {
* @param path Pathname * @param path Pathname
*/ */
@action setLastHomePath(path: string) { @action setLastHomePath(path: string) {
if (path.startsWith("/bot")) return;
if (path.startsWith("/invite")) return;
this.lastHomePath = path; this.lastHomePath = path;
this.lastSection = "home"; this.lastSection = "home";
} }