mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-24 16:41:36 +00:00
parent
f345eeae55
commit
8587fa8585
@ -161,7 +161,7 @@ func (b *Bmattermost) Send(msg config.Message) (string, error) {
|
||||
if err != nil {
|
||||
b.Log.Errorf("getting post %s failed: %s", msg.ParentID, err)
|
||||
}
|
||||
if post.RootId != "" {
|
||||
if post != nil && post.RootId != "" {
|
||||
msg.ParentID = post.RootId
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user