feat: Shows inbox identifier token for API inbox (#2894)

Fixes: #2605
This commit is contained in:
Brandon Wilson
2021-08-27 10:26:45 -04:00
committed by GitHub
parent 9a8cbee470
commit f94abaef5f
5 changed files with 64 additions and 1 deletions

View File

@@ -74,6 +74,10 @@ class Inbox < ApplicationRecord
channel_type == 'Channel::WebWidget'
end
def api?
channel_type == 'Channel::Api'
end
def inbox_type
channel.name
end