Added toaster for start and stop recording only for moderator.

This commit is contained in:
Ghazi Triki 2018-05-29 16:00:10 +01:00
parent 2c752ff4cb
commit db112d23d8
2 changed files with 10 additions and 0 deletions

View File

@ -883,6 +883,8 @@ bbb.notification.audio.joined = You have joined the audio conference
bbb.notification.audio.left = You have left the audio conference
bbb.notification.screenShare.started = Screenshare has started
bbb.notification.screenShare.ened = Screenshare has ended
bbb.notification.recording.started = This session is now being recorded
bbb.notification.recording.stopped = This session is not being recorded anymore
bbb.langSelector.default=Default language

View File

@ -564,6 +564,14 @@ package org.bigbluebutton.modules.users.services
var e:BBBEvent = new BBBEvent(BBBEvent.CHANGE_RECORDING_STATUS);
e.payload.remote = true;
e.payload.recording = recording;
if (UsersUtil.amIModerator()) {
if (recording) {
Toaster.toast(ResourceUtil.getInstance().getString("bbb.notification.recording.started"), ToastType.DEFAULT);
} else {
Toaster.toast(ResourceUtil.getInstance().getString("bbb.notification.recording.stopped"), ToastType.DEFAULT);
}
}
dispatcher.dispatchEvent(e);
}