feat: API to create HMAC verified conversations (#7209)

Fixes: #6744
This commit is contained in:
Sojan Jose
2023-05-29 21:57:24 +05:30
committed by GitHub
parent 91d1d44aa9
commit 3a7633b564
5 changed files with 31 additions and 23 deletions

View File

@@ -1,11 +1,13 @@
class Api::V1::Accounts::Contacts::ContactInboxesController < Api::V1::Accounts::Contacts::BaseController
include HmacConcern
before_action :ensure_inbox, only: [:create]
def create
@contact_inbox = ContactInboxBuilder.new(
contact: @contact,
inbox: @inbox,
source_id: params[:source_id]
source_id: params[:source_id],
hmac_verified: hmac_verified?
).perform
end