fix(messages): always re-render messages after details load — fixes group read status not showing
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-03-27 16:54:42 +01:00
parent d5d67d8c1d
commit 1a3db7cf14
2 changed files with 6 additions and 5 deletions

View File

@ -406,13 +406,14 @@
var pinsList = Array.isArray(pinsData) ? pinsData : (pinsData.pins || []);
state.pinnedMessageIds = pinsList.map(function (p) { return p.message_id; });
Pins.updateBar(pinsList.length);
// Re-render messages now that we know which are pinned
if (state.pinnedMessageIds.length > 0 && state.messages[conversationId]) {
ChatView.renderMessages(state.messages[conversationId]);
}
} catch (_) {
state.pinnedMessageIds = [];
}
// Re-render messages with full details (read status, pins)
if (state.messages[conversationId]) {
ChatView.renderMessages(state.messages[conversationId]);
}
} catch (e) {
// silently ignore detail load errors
}

View File

@ -228,7 +228,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=15';
s.src = '{{ url_for("static", filename="js/conversations.js") }}?v=16';
document.body.appendChild(s);
})();
{% endblock %}