diff --git a/lib/Vroom/Constants.pm b/lib/Vroom/Constants.pm index 01225e2..2301ee6 100644 --- a/lib/Vroom/Constants.pm +++ b/lib/Vroom/Constants.pm @@ -122,6 +122,7 @@ use constant JS_STRINGS => qw( s_IS_PROMOTING_YOU s_IS_PROMOTING_s s_IS_KICKING_s + s_CHANGED_ROOM_CONFIG MUTE_PEER SUSPEND_PEER PROMOTE_PEER diff --git a/lib/Vroom/I18N/en.pm b/lib/Vroom/I18N/en.pm index 48fe307..824ff73 100644 --- a/lib/Vroom/I18N/en.pm +++ b/lib/Vroom/I18N/en.pm @@ -208,6 +208,7 @@ our %Lexicon = ( "s_IS_PROMOTING_s" => "%s has granted %s administration privileges on the room", "PEER_PROMOTED" => "You have granted administration privileges on the room", "s_IS_KICKING_s" => "%s has kicked %s out of the room", + "s_CHANGED_ROOM_CONFIG" => "%s changed room configuration", "KICKED" => "Kicked", "YOU_HAVE_BEEN_KICKED" => "You've been kicked out of the room", "AN_ADMIN_HAS_KICKED_YOU" => "An administrator of the room has excluded you", diff --git a/lib/Vroom/I18N/fr.pm b/lib/Vroom/I18N/fr.pm index b608409..5f616e2 100644 --- a/lib/Vroom/I18N/fr.pm +++ b/lib/Vroom/I18N/fr.pm @@ -212,7 +212,7 @@ our %Lexicon = ( "MUTE_PEER" => "Couper ou réactiver le micro de ce participant", "SUSPEND_PEER" => "Mettre en pause ou réactiver la webcam de ce participant", "PROMOTE_PEER" => "Donner les droits d'administration du salon à ce participant", - "KICK_PEER" => "Éjecter ce participant du salon", + "KICK_PEER" => "Bannir ce participant du salon", "s_IS_MUTING_YOU" => "%s a coupé votre micro", "s_IS_MUTING_s" => "%s a coupé le micro de %s", "s_IS_UNMUTING_YOU" => "%s a réactivé votre micro", @@ -224,8 +224,9 @@ our %Lexicon = ( "s_IS_PROMOTING_YOU" => "%s vous a donné les droits d'administration du salon", "s_IS_PROMOTING_s" => "%s a donné les droits d'administration du salon à %s", "PEER_PROMOTED" => "Vous avez donné les droits sur ce salon", - "s_IS_KICKING_s" => "%s a éjecté %s du salon", - "KICKED" => "Éjecté", + "s_IS_KICKING_s" => "%s a banni %s du salon", + "s_CHANGED_ROOM_CONFIG" => "%s a changé la configuration du salon", + "KICKED" => "Banni", "YOU_HAVE_BEEN_KICKED" => "Vous avez été banni du salon", "AN_ADMIN_HAS_KICKED_YOU" => "Un administrateur du salon vous a exclus", "YOU_HAVE_MUTED_s" => "Vous avez coupé le micro de %s", diff --git a/public/js/vroom.js b/public/js/vroom.js index 5105797..86d5690 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -1091,6 +1091,13 @@ function initVroom(room) { } }); + // Room config has been updated + webrtc.on('room_conf_updated', function(data){ + var who = (peers[data.id].hasName) ? peers[data.id].displayName : locale.A_ROOM_ADMIN; + getRoomInfo(); + $.notify(sprintf(locale.s_CHANGED_ROOM_CONFIG, who), 'success'); + }); + // This peer indicates he has no webcam webrtc.on('media_info', function(data){ if (!data.payload.video){