Sound and notification on raise hand, fixes #40

auto_join_3.3
Håvar Aambø Fosstveit 2020-05-02 23:28:03 +02:00
parent 1dcb4eabf2
commit c7c4a76b33
18 changed files with 67 additions and 0 deletions

View File

@ -2211,6 +2211,39 @@ export default class RoomClient
store.dispatch(peerActions.setPeerRaisedHand(peerId, raisedHand));
const { displayName } = store.getState().peers[peerId];
let text;
if (raisedHand)
{
text = intl.formatMessage({
id : 'room.raisedHand',
defaultMessage : '{displayName} raised their hand'
}, {
displayName
});
}
else
{
text = intl.formatMessage({
id : 'room.loweredHand',
defaultMessage : '{displayName} put their hand down'
}, {
displayName
});
}
if (displayName)
{
store.dispatch(requestActions.notify(
{
text
}));
}
this._soundNotification();
break;
}

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -55,6 +55,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": "Dein Browser unterstützt keine Spracherkennung",
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": "Du bist stummgeschalted, Halte die SPACE-Taste um zu sprechen",

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": "Clear files",
"room.speechUnsupported": "Your browser does not support speech recognition",
"room.moderatoractions": "Moderator actions",
"room.raisedHand": "{displayName} raised their hand",
"room.loweredHand": "{displayName} put their hand down",
"me.mutedPTT": "You are muted, hold down SPACE-BAR to talk",

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": "Vaš preglednik ne podržava prepoznavanje govora",
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": "Utišani ste, pritisnite i držite SPACE tipku za razgovor",

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": "Fjern filer",
"room.speechUnsupported": "Din nettleser støtter ikke stemmegjenkjenning",
"room.moderatoractions": "Moderatorhandlinger",
"room.raisedHand": "{displayName} rakk opp hånden",
"room.loweredHand": "{displayName} tok ned hånden",
"me.mutedPTT": "Du er dempet, hold nede SPACE for å snakke",

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,

View File

@ -56,6 +56,8 @@
"room.clearFileSharing": null,
"room.speechUnsupported": null,
"room.moderatoractions": null,
"room.raisedHand": null,
"room.loweredHand": null,
"me.mutedPTT": null,