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
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:
parent
195abb0be4
commit
883140210b
@ -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');
|
||||
|
||||
@ -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 %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user