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

View File

@@ -1026,10 +1026,10 @@ i.x-status-icon.red {
-webkit-line-clamp: unset;
}
// .el-carousel__mask {
// // looks bad
// display: none;
// }
.el-carousel__mask {
// looks bad
display: none;
}
// FIXME
// Something changed the CSS of element-ui

View File

@@ -381,7 +381,7 @@
loading="lazy" />
<div
v-if="avatarDialog.ref.authorId === currentUser.id"
style="position: absolute; bottom: 5px; left: 33.3%">
style="position: absolute; bottom: 35px; left: 38%">
<el-button
size="small"
:icon="Back"

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');
});
}