fix(messages): always fetch fresh data for group management panel
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

The panel was showing 0 members because it used cached conversation
details that might have been loaded before the panel was opened.
Now it always fetches fresh data from the API.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-04-08 16:44:36 +02:00
parent 195abb0be4
commit 883140210b
2 changed files with 7 additions and 8 deletions

View File

@ -2516,13 +2516,12 @@
var convId = state.currentConversationId;
if (!convId) return;
var details = state.conversationDetails[convId];
if (!details) {
try {
details = await api('/api/conversations/' + convId);
state.conversationDetails[convId] = details;
} catch (e) { return; }
}
// Always fetch fresh data for the management panel
var details;
try {
details = await api('/api/conversations/' + convId);
state.conversationDetails[convId] = details;
} catch (e) { return; }
// Name
var nameInput = document.getElementById('groupEditName');

View File

@ -326,7 +326,7 @@ window.__CSRF_TOKEN__ = '{{ csrf_token() }}';
// Load conversations.js after data is set
(function() {
var s = document.createElement('script');
s.src = '{{ url_for("static", filename="js/conversations.js") }}?v=21';
s.src = '{{ url_for("static", filename="js/conversations.js") }}?v=22';
document.body.appendChild(s);
})();
{% endblock %}