forked from External/greenlight
update user waiting notification to show meeting name
This commit is contained in:
@ -52,7 +52,7 @@
|
||||
// show a browser notification only to the owner
|
||||
if (isRoomOwner()) {
|
||||
showNotification(I18n.user_waiting_title, {
|
||||
body: I18n.user_waiting_body.replace(/%{user}/, data.user)
|
||||
body: I18n.user_waiting_body.replace(/%{user}/, data.user).replace(/%{meeting}/, '"'+data.meeting_name+'"')
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -18,9 +18,8 @@ class NotifyUserWaitingJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(room, meeting, user)
|
||||
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel",
|
||||
{ action: 'user_waiting', user: user }
|
||||
ActionCable.server.broadcast "#{room}_meeting_updates_channel",
|
||||
{ action: 'user_waiting', user: user }
|
||||
payload = { action: 'user_waiting', user: user, meeting_name: meeting }
|
||||
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel", payload
|
||||
ActionCable.server.broadcast "#{room}_meeting_updates_channel", payload
|
||||
end
|
||||
end
|
||||
|
@ -22,7 +22,7 @@ class RecordingCreatedJob < ApplicationJob
|
||||
def perform(token, room, recording)
|
||||
ActionCable.server.broadcast "#{room}_recording_updates_channel",
|
||||
{ action: 'create' }.merge(recording)
|
||||
ActionCable.server.broadcast "#{token}_recording_updates_channel",
|
||||
{ action: 'create' }.merge(recording)
|
||||
ActionCable.server.broadcast "#{token}_recording_updates_channel",
|
||||
{ action: 'create' }.merge(recording)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user