chore: Add Additional Contact APIs (#1130)
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user