mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-28 18:00:59 -05:00
fix: ignore bot and server invites in layout paths
This commit is contained in:
parent
5768ff7c2f
commit
90a53452e8
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue