chore: Fix conversation status in webhooks (#3364)
- fix the wrong conversation status being sent in webhooks - additional information in websocket events - refactor activity messaging code - move activity message generation to background job to stop the callback loop
This commit is contained in:
7
app/jobs/conversations/activity_message_job.rb
Normal file
7
app/jobs/conversations/activity_message_job.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Conversations::ActivityMessageJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(conversation, message_params)
|
||||
conversation.messages.create(message_params)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user