feat: Remove labels in macro (#5875)

This commit is contained in:
Tejaswini Chile
2022-11-17 12:30:47 +05:30
committed by GitHub
parent 66044a0dc3
commit e85f998a08
6 changed files with 34 additions and 2 deletions

View File

@@ -33,6 +33,13 @@ class ActionService
@conversation.update!(assignee_id: @agent.id) if @agent.present?
end
def remove_label(labels)
return if labels.empty?
labels = @conversation.label_list - labels
@conversation.update(label_list: labels)
end
def assign_team(team_ids = [])
return unless team_belongs_to_account?(team_ids)