From cdd28e66fcbe17fee888afbf92b920b17fdddc5f Mon Sep 17 00:00:00 2001 From: MarekWo Date: Wed, 18 Feb 2026 09:39:14 +0100 Subject: [PATCH] fix: Auto-refresh DM view after send to show delivery status Add two extra delayed reloads (6s, 15s) after sending a DM, matching the channel chat pattern, so ACK checkmarks appear without needing to send another message. Co-Authored-By: Claude Opus 4.6 --- app/static/js/dm.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/static/js/dm.js b/app/static/js/dm.js index 9824c90..d6fc371 100644 --- a/app/static/js/dm.js +++ b/app/static/js/dm.js @@ -515,8 +515,11 @@ async function sendMessage() { updateCharCounter(); showNotification('Message sent', 'success'); - // Reload messages after short delay + // Reload messages after short delay to show sent message setTimeout(() => loadMessages(), 1000); + // Reload again to catch ACK delivery status (typically arrives within 3-30s) + setTimeout(() => loadMessages(), 6000); + setTimeout(() => loadMessages(), 15000); } else { showNotification('Failed to send: ' + data.error, 'danger'); }