chore: Add Additional Contact APIs (#1130)

Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Sojan Jose
2020-08-10 12:15:29 +05:30
committed by GitHub
parent ec3c2ed4bb
commit a6a62d92bf
11 changed files with 129 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ class Messages::MessageBuilder
private
def message_type
if @conversation.inbox.channel.class != Channel::Api && @message_type == 'incoming'
if @conversation.inbox.channel_type != 'Channel::Api' && @message_type == 'incoming'
raise StandardError, 'Incoming messages are only allowed in Api inboxes'
end