4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 01:49:22 +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

@ -459,9 +459,9 @@ func (gw *Gateway) SendMessage(
}
// if the parentID is still empty and we have a parentID set in the original message
// this means that we didn't find it in the cache so set it "msg-parent-not-found"
// this means that we didn't find it in the cache so set it to a "msg-parent-not-found" constant
if msg.ParentID == "" && rmsg.ParentID != "" {
msg.ParentID = "msg-parent-not-found"
msg.ParentID = config.ParentIDNotFound
}
drop, err := gw.modifyOutMessageTengo(rmsg, &msg, dest)