fix(channels): satisfy strict delta lint in Mattermost reply routing
This commit is contained in:
parent
318e0fa9a7
commit
62eba544e2
1 changed files with 3 additions and 3 deletions
|
|
@ -203,14 +203,14 @@ impl MattermostChannel {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it's a thread, include root_id in reply_to so we reply in the same thread
|
// 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() {
|
let reply_target = if root_id.is_empty() {
|
||||||
format!("{}:{}", channel_id, root_id)
|
|
||||||
} else {
|
|
||||||
// Or if it's a top-level message that WE want to start a thread on,
|
// 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.
|
// the next reply will use THIS post's ID as root_id.
|
||||||
// But for now, we follow Mattermost's 'reply' convention where
|
// But for now, we follow Mattermost's 'reply' convention where
|
||||||
// replying to a post uses its ID as root_id.
|
// replying to a post uses its ID as root_id.
|
||||||
format!("{}:{}", channel_id, id)
|
format!("{}:{}", channel_id, id)
|
||||||
|
} else {
|
||||||
|
format!("{}:{}", channel_id, root_id)
|
||||||
};
|
};
|
||||||
|
|
||||||
Some(ChannelMessage {
|
Some(ChannelMessage {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue