mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user