mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
fix: ignore bot and server invites in layout paths
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user