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
+4 -4
View File
@@ -1026,10 +1026,10 @@ i.x-status-icon.red {
-webkit-line-clamp: unset; -webkit-line-clamp: unset;
} }
// .el-carousel__mask { .el-carousel__mask {
// // looks bad // looks bad
// display: none; display: none;
// } }
// FIXME // FIXME
// Something changed the CSS of element-ui // Something changed the CSS of element-ui
@@ -381,7 +381,7 @@
loading="lazy" /> loading="lazy" />
<div <div
v-if="avatarDialog.ref.authorId === currentUser.id" v-if="avatarDialog.ref.authorId === currentUser.id"
style="position: absolute; bottom: 5px; left: 33.3%"> style="position: absolute; bottom: 35px; left: 38%">
<el-button <el-button
size="small" size="small"
:icon="Back" :icon="Back"
+7
View File
@@ -351,6 +351,13 @@ export const useGroupStore = defineStore('Group', () => {
if (currentUserGroups.has(groupId)) { if (currentUserGroups.has(groupId)) {
currentUserGroups.delete(groupId); currentUserGroups.delete(groupId);
groupRequest.getCachedGroup({ groupId }).then((args) => { 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'); groupChange(args.ref, 'Left group');
}); });
} }