From 62eba544e25cb65316b2d10b417116d23e28874a Mon Sep 17 00:00:00 2001 From: Chummy Date: Wed, 18 Feb 2026 00:15:35 +0800 Subject: [PATCH] fix(channels): satisfy strict delta lint in Mattermost reply routing --- src/channels/mattermost.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/channels/mattermost.rs b/src/channels/mattermost.rs index 132ca30..a10cd72 100644 --- a/src/channels/mattermost.rs +++ b/src/channels/mattermost.rs @@ -203,14 +203,14 @@ impl MattermostChannel { } // If it's a thread, include root_id in reply_to so we reply in the same thread - let reply_target = if !root_id.is_empty() { - format!("{}:{}", channel_id, root_id) - } else { + let reply_target = if root_id.is_empty() { // Or if it's a top-level message that WE want to start a thread on, // the next reply will use THIS post's ID as root_id. // But for now, we follow Mattermost's 'reply' convention where // replying to a post uses its ID as root_id. format!("{}:{}", channel_id, id) + } else { + format!("{}:{}", channel_id, root_id) }; Some(ChannelMessage {