feat: Add the ability to self-assign conversations in macros (#8048)

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Sojan Jose
2023-10-09 21:08:23 -07:00
committed by GitHub
parent 759a66dd21
commit 6a07251007
5 changed files with 160 additions and 4 deletions

View File

@@ -22,6 +22,11 @@ class Macros::ExecutionService < ActionService
private
def assign_agent(agent_ids)
agent_ids = agent_ids.map { |id| id == 'self' ? @user.id : id }
super(agent_ids)
end
def add_private_note(message)
return if conversation_a_tweet?