forked from External/greenlight
Merge pull request #136 from zach-chai/update_notification
update user waiting notification to show meeting name
This commit is contained in:
commit
71505a18d2
|
@ -52,7 +52,7 @@
|
||||||
// show a browser notification only to the owner
|
// show a browser notification only to the owner
|
||||||
if (isRoomOwner()) {
|
if (isRoomOwner()) {
|
||||||
showNotification(I18n.user_waiting_title, {
|
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
|
queue_as :default
|
||||||
|
|
||||||
def perform(room, meeting, user)
|
def perform(room, meeting, user)
|
||||||
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel",
|
payload = { action: 'user_waiting', user: user, meeting_name: meeting }
|
||||||
{ action: 'user_waiting', user: user }
|
ActionCable.server.broadcast "#{room}-#{meeting}_meeting_updates_channel", payload
|
||||||
ActionCable.server.broadcast "#{room}_meeting_updates_channel",
|
ActionCable.server.broadcast "#{room}_meeting_updates_channel", payload
|
||||||
{ action: 'user_waiting', user: user }
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -60,7 +60,7 @@ en-US:
|
||||||
unpublish_recording: Hide recording
|
unpublish_recording: Hide recording
|
||||||
unlisted: Unlisted
|
unlisted: Unlisted
|
||||||
unpublished: No one
|
unpublished: No one
|
||||||
user_waiting_body: "%{user} is waiting to join your room!"
|
user_waiting_body: "%{user} is waiting to join %{meeting}!"
|
||||||
user_waiting_title: A user is waiting
|
user_waiting_title: A user is waiting
|
||||||
copied: Copied
|
copied: Copied
|
||||||
copy_error: Use Ctrl-c to copy
|
copy_error: Use Ctrl-c to copy
|
||||||
|
|
Loading…
Reference in New Issue