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
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:
parent
883140210b
commit
a57e21b538
@ -2481,12 +2481,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function () {
|
show: async function () {
|
||||||
var panel = document.getElementById('groupPanel');
|
var panel = document.getElementById('groupPanel');
|
||||||
if (!panel) return;
|
if (!panel) return;
|
||||||
GroupManager._visible = true;
|
GroupManager._visible = true;
|
||||||
panel.style.display = 'block';
|
panel.style.display = 'block';
|
||||||
GroupManager.loadDetails();
|
await GroupManager.loadDetails();
|
||||||
},
|
},
|
||||||
|
|
||||||
hide: function () {
|
hide: function () {
|
||||||
@ -2514,14 +2514,20 @@
|
|||||||
|
|
||||||
loadDetails: async function () {
|
loadDetails: async function () {
|
||||||
var convId = state.currentConversationId;
|
var convId = state.currentConversationId;
|
||||||
if (!convId) return;
|
if (!convId) {
|
||||||
|
console.warn('GroupManager.loadDetails: no currentConversationId');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Always fetch fresh data for the management panel
|
// Always fetch fresh data for the management panel
|
||||||
var details;
|
var details;
|
||||||
try {
|
try {
|
||||||
details = await api('/api/conversations/' + convId);
|
details = await api('/api/conversations/' + convId);
|
||||||
state.conversationDetails[convId] = details;
|
state.conversationDetails[convId] = details;
|
||||||
} catch (e) { return; }
|
} catch (e) {
|
||||||
|
console.error('GroupManager.loadDetails: API error', e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Name
|
// Name
|
||||||
var nameInput = document.getElementById('groupEditName');
|
var nameInput = document.getElementById('groupEditName');
|
||||||
|
|||||||
@ -326,7 +326,7 @@ window.__CSRF_TOKEN__ = '{{ csrf_token() }}';
|
|||||||
// Load conversations.js after data is set
|
// Load conversations.js after data is set
|
||||||
(function() {
|
(function() {
|
||||||
var s = document.createElement('script');
|
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);
|
document.body.appendChild(s);
|
||||||
})();
|
})();
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user