4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-27 06:29:24 +00:00

Refactor "msg-parent-not-found" to config.ParentIDNotFound (#1347)

This commit is contained in:
Qais Patankar
2020-12-31 18:01:57 +00:00
committed by GitHub
parent 1a4717b366
commit a9d8ac8bc0
6 changed files with 21 additions and 8 deletions

View File

@ -299,7 +299,7 @@ func (b *Bslack) sendRTM(msg config.Message) (string, error) {
}
// Handle prefix hint for unthreaded messages.
if msg.ParentID == "msg-parent-not-found" {
if msg.ParentNotFound() {
msg.ParentID = ""
msg.Text = fmt.Sprintf("[thread]: %s", msg.Text)
}