fix(messages): re-render messages after pins load so pin icons appear on bubbles
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
f3fc7060ee
commit
597cc4fb3f
@ -405,6 +405,10 @@
|
||||
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 = [];
|
||||
}
|
||||
|
||||
@ -245,7 +245,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=7';
|
||||
s.src = '{{ url_for("static", filename="js/conversations.js") }}?v=8';
|
||||
document.body.appendChild(s);
|
||||
})();
|
||||
{% endblock %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user