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 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-02-18 09:39:14 +01:00
parent 7a960f2556
commit cdd28e66fc

View File

@@ -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');
}