mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Hand raised sound
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user