Fix group dialog not showing when user is traveling (#903)

When viewing a profile of a user that is traveling to a group instance clicking the group name will not open the group dialog.
This commit is contained in:
Nekromateion
2024-09-10 22:38:36 +02:00
committed by GitHub
parent c333f165e4
commit 3ccc6bbdf4

View File

@@ -991,10 +991,14 @@ speechSynthesis.getVoices();
}
},
showGroupDialog() {
if (!this.location || !this.link) {
var location = this.location;
if (this.isTraveling) {
location = this.traveling;
}
if (!location || !this.link) {
return;
}
var L = API.parseLocation(this.location);
var L = API.parseLocation(location);
if (!L.groupId) {
return;
}