Skip to content

Commit

Permalink
Merge pull request #69 from webitel/v24.04
Browse files Browse the repository at this point in the history
V24.04
  • Loading branch information
Dtsnko authored Jul 3, 2024
2 parents ace3aa2 + d39d50f commit 1149ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chat/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 1149ef2

Please sign in to comment.