Fix avatar dialog gallery edit buttons and left own group spam

This commit is contained in:
Natsumi
2025-10-29 22:51:39 +11:00
parent b8f6d67ad4
commit 814a66abea
3 changed files with 12 additions and 5 deletions
+7
View File
@@ -351,6 +351,13 @@ export const useGroupStore = defineStore('Group', () => {
if (currentUserGroups.has(groupId)) {
currentUserGroups.delete(groupId);
groupRequest.getCachedGroup({ groupId }).then((args) => {
if (args.ref?.ownerId === userStore.currentUser.id) {
// Issue #1455
console.log(
`Not sending left group notification for owned group ${groupId}`
);
return;
}
groupChange(args.ref, 'Left group');
});
}