Skip to content

Commit

Permalink
Fix issue when joining with an account that is not logged in (#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Jan 15, 2024
1 parent 6af1d50 commit 0e30582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/meeting_starter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def call

def computed_options(access_code:)
room_url = "#{root_url(host: @base_url)}rooms/#{@room.friendly_id}/join"
moderator_message = "#{I18n.t('meeting.moderator_message', locale: @current_user.language.to_sym)}<br>#{room_url}"
moderator_message += "<br>#{I18n.t('meeting.access_code', code: access_code, locale: @current_user.language.to_sym)}" if access_code.present?
moderator_message = "#{I18n.t('meeting.moderator_message', locale: @current_user&.language&.to_sym)}<br>#{room_url}"
moderator_message += "<br>#{I18n.t('meeting.access_code', code: access_code, locale: @current_user&.language&.to_sym)}" if access_code.present?
{
moderatorOnlyMessage: moderator_message,
logoutURL: room_url,
Expand Down

0 comments on commit 0e30582

Please sign in to comment.