mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-02 13:03:35 +00:00
fix: allow changing conversation status to resolved again & again as agent might change the snooze duration
This commit is contained in:
@@ -607,9 +607,9 @@ func (c *Manager) UpdateConversationStatus(uuid string, statusID int, status, sn
|
||||
}
|
||||
oldStatus := conversationBeforeChange.Status.String
|
||||
|
||||
// Status not changed? return early.
|
||||
if oldStatus == status {
|
||||
c.lo.Info("conversation status is unchanged", "uuid", uuid, "status", status)
|
||||
// Status not changed and not snoozed. Return early.
|
||||
if oldStatus == status && status != models.StatusSnoozed {
|
||||
c.lo.Debug("no status update: conversation status unchanged and not snoozed", "uuid", uuid, "old_status", oldStatus, "new_status", status)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user