Lightweight native Discord client for Windows, Linux and macOS, written in Rust. No Electron, no browser engine.
Rust desktop-appdiscorddiscord-clienteguielectron-alternativelightweightlinuxmacosnative-apprustwindows
Wait for history before resolving message jumps (#72)
ASVLCIId5d5518afb89
diff --git a/apps/rustcord/src/app.rs b/apps/rustcord/src/app.rsindex 28ea85d..9f2fc7f 100644--- a/apps/rustcord/src/app.rs+++ b/apps/rustcord/src/app.rs@@ -2728,6 +2728,12 @@ impl RustCord {self.ctx.request_repaint();return;}+ // An in-flight history request can still contain the target. Retry+ // on completion without charging this jump for a page it didn't request.+ if cm.loading {+ self.pending_jump = Some((channel, msg, attempt));+ return;+ }let older = cm.list.first().is_some_and(|first| msg.0 < first.id.0);if older && cm.has_more && attempt < 10 {self.pending_jump = Some((channel, msg, attempt + 1));