diff options
author | Qais Patankar <qaisjp@gmail.com> | 2020-12-31 18:01:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 18:01:57 +0000 |
commit | a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7 (patch) | |
tree | e6ce1698337ae6882470028fe659f690f384efe9 /gateway/gateway.go | |
parent | 1a4717b366a2371dacc0ce205b0a42c5b31f52dc (diff) | |
download | matterbridge-msglm-a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7.tar.gz matterbridge-msglm-a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7.tar.bz2 matterbridge-msglm-a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7.zip |
Refactor "msg-parent-not-found" to config.ParentIDNotFound (#1347)
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r-- | gateway/gateway.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index eb530afd..aa7144f8 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -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) |