chore: Return medium in inbox APIs (#3025)

Return medium in inbox APIs
This commit is contained in:
Sojan Jose
2021-09-16 16:51:06 +05:30
committed by GitHub
parent a0ffefad71
commit 0c3e8b6dbd
3 changed files with 6 additions and 1 deletions

View File

@@ -83,6 +83,10 @@ class Inbox < ApplicationRecord
channel_type == 'Channel::Email'
end
def twilio?
channel_type == 'Channel::TwilioSms'
end
def inbox_type
channel.name
end