diff --git a/html/src/app.js b/html/src/app.js
index 6b23bf3f..b6efa05c 100644
--- a/html/src/app.js
+++ b/html/src/app.js
@@ -23802,7 +23802,9 @@ speechSynthesis.getVoices();
D.announcement = {};
D.instances = [];
D.memberRoles = [];
- D.galleries = {};
+ if (this.groupDialogLastGallery !== groupId) {
+ D.galleries = {};
+ }
if (this.groupDialogLastMembers !== groupId) {
D.members = [];
}