From a9d8ac8bc0c745d43440aa56f1b602edf8e4aef7 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Thu, 31 Dec 2020 18:01:57 +0000 Subject: Refactor "msg-parent-not-found" to config.ParentIDNotFound (#1347) --- gateway/gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gateway') 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) -- cgit v1.2.3