From db4729cb2545fe4fc175557a0beceef92ab95bda Mon Sep 17 00:00:00 2001 From: Dtsnko Date: Wed, 3 Jul 2024 13:17:23 +0300 Subject: [PATCH 1/2] [WTEL-4696]: + bugfix --- chat/conversation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/conversation.go b/chat/conversation.go index 6c17f60a..0490f063 100644 --- a/chat/conversation.go +++ b/chat/conversation.go @@ -139,7 +139,7 @@ func (c *Conversation) Reporting(noLeave bool) *model.AppError { c.Unlock() if !noLeave { - err := c.cli.Leave(sess.UserId, sess.ChannelId, sess.ConversationId) + err := c.cli.Leave(sess.UserId, sess.ChannelId, sess.ConversationId, "") if err != nil { return model.NewAppError("Chat.Reporting", "chat.leave.app_err", nil, err.Error(), http.StatusInternalServerError) } From 1945aa59cc0641b8c1ccc8542f15a0ad47e2f639 Mon Sep 17 00:00:00 2001 From: Dtsnko Date: Wed, 3 Jul 2024 13:27:44 +0300 Subject: [PATCH 2/2] [WTEL-4696]: + bugfix --- chat/conversation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat/conversation.go b/chat/conversation.go index 6c17f60a..aeac655c 100644 --- a/chat/conversation.go +++ b/chat/conversation.go @@ -5,6 +5,7 @@ import ( "fmt" "github.com/webitel/call_center/model" "github.com/webitel/engine/chat_manager" + enginemodel "github.com/webitel/engine/model" "github.com/webitel/wlog" "net/http" "strings" @@ -139,7 +140,7 @@ func (c *Conversation) Reporting(noLeave bool) *model.AppError { c.Unlock() if !noLeave { - err := c.cli.Leave(sess.UserId, sess.ChannelId, sess.ConversationId) + err := c.cli.Leave(sess.UserId, sess.ChannelId, sess.ConversationId, enginemodel.AgentLeave) if err != nil { return model.NewAppError("Chat.Reporting", "chat.leave.app_err", nil, err.Error(), http.StatusInternalServerError) }