fix(messages): await loadDetails in group panel show + add debug logging
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

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

View File

@ -2481,12 +2481,12 @@
}
},
show: function () {
show: async function () {
var panel = document.getElementById('groupPanel');
if (!panel) return;
GroupManager._visible = true;
panel.style.display = 'block';
GroupManager.loadDetails();
await GroupManager.loadDetails();
},
hide: function () {
@ -2514,14 +2514,20 @@
loadDetails: async function () {
var convId = state.currentConversationId;
if (!convId) return;
if (!convId) {
console.warn('GroupManager.loadDetails: no currentConversationId');
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; }
} catch (e) {
console.error('GroupManager.loadDetails: API error', 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=22';
s.src = '{{ url_for("static", filename="js/conversations.js") }}?v=23';
document.body.appendChild(s);
})();
{% endblock %}