Refresh group dialog when joining/leaving a group

This commit is contained in:
Natsumi
2025-06-18 12:53:12 +12:00
parent e06412d07b
commit 1edd8b52fa
2 changed files with 11 additions and 42 deletions

View File

@@ -7621,18 +7621,9 @@ console.log(`isLinux: ${LINUX}`);
$app.methods.showGroupDialogShortCode = function (shortCode) {
groupRequest.groupStrictsearch({ query: shortCode }).then((args) => {
for (const group of args.json) {
// API.$on('GROUP:STRICTSEARCH', function (args) {
// for (var json of args.json) {
API.$emit('GROUP', {
group,
params: {
groupId: group.id
}
});
// }
// });
if (`${group.shortCode}.${group.discriminator}` === shortCode) {
this.showGroupDialog(group.id);
break;
}
}
return args;