mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-09 15:40:27 +00:00
Change discord non-native threading behaviour (discord) (#1791)
Sorta regression introduced by 9a8ce9b17e
which changes the way we get replies of matrix.
This causes issues like https://github.com/42wim/matterbridge/issues/1780
We "fix" this by mimicking the old behaviour when "PreserveThreading" is
disabled.
This commit is contained in:
parent
c6716e030c
commit
ce782ff6fb
@ -272,7 +272,8 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
|
|||||||
// Handle prefix hint for unthreaded messages.
|
// Handle prefix hint for unthreaded messages.
|
||||||
if msg.ParentNotFound() {
|
if msg.ParentNotFound() {
|
||||||
msg.ParentID = ""
|
msg.ParentID = ""
|
||||||
msg.Text = fmt.Sprintf("[thread]: %s", msg.Text)
|
msg.Text = strings.TrimPrefix(msg.Text, "\n")
|
||||||
|
msg.Text = fmt.Sprintf("> %s %s", msg.Username, msg.Text)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use webhook to send the message
|
// Use webhook to send the message
|
||||||
|
Loading…
Reference in New Issue
Block a user