Hand raised sound

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
ayumi-signal 2024-01-10 21:57:36 -08:00 committed by GitHub
parent 980f162c96
commit c126ca1016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 2 deletions

View file

@ -14,6 +14,19 @@ const ringtoneEventQueue = new PQueue({
class CallingTones {
private ringtone?: Sound;
async handRaised() {
const canPlayTone = window.Events.getCallRingtoneNotification();
if (!canPlayTone) {
return;
}
const tone = new Sound({
soundType: SoundType.CallingHandRaised,
});
await tone.play();
}
async playEndCall(): Promise<void> {
const canPlayTone = window.Events.getCallRingtoneNotification();
if (!canPlayTone) {