chore: Sentry issues (#4623)
Fixes various issues reported on sentry - Twilio channel creation validation errors - Room Channel error with nil class - Webhook Uri exception
This commit is contained in:
@@ -45,6 +45,8 @@ class RoomChannel < ApplicationCable::Channel
|
||||
end
|
||||
|
||||
def current_account
|
||||
return if current_user.blank?
|
||||
|
||||
@current_account ||= if @current_user.is_a? Contact
|
||||
@current_user.account
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user