Migrate to private class properties/methods
This commit is contained in:
parent
7dbe57084b
commit
aa9f53df57
100 changed files with 3795 additions and 3944 deletions
|
@ -12,7 +12,7 @@ const ringtoneEventQueue = new PQueue({
|
|||
});
|
||||
|
||||
class CallingTones {
|
||||
private ringtone?: Sound;
|
||||
#ringtone?: Sound;
|
||||
|
||||
async handRaised() {
|
||||
const canPlayTone = window.Events.getCallRingtoneNotification();
|
||||
|
@ -41,9 +41,9 @@ class CallingTones {
|
|||
|
||||
async playRingtone() {
|
||||
await ringtoneEventQueue.add(async () => {
|
||||
if (this.ringtone) {
|
||||
this.ringtone.stop();
|
||||
this.ringtone = undefined;
|
||||
if (this.#ringtone) {
|
||||
this.#ringtone.stop();
|
||||
this.#ringtone = undefined;
|
||||
}
|
||||
|
||||
const canPlayTone = window.Events.getCallRingtoneNotification();
|
||||
|
@ -51,20 +51,20 @@ class CallingTones {
|
|||
return;
|
||||
}
|
||||
|
||||
this.ringtone = new Sound({
|
||||
this.#ringtone = new Sound({
|
||||
loop: true,
|
||||
soundType: SoundType.Ringtone,
|
||||
});
|
||||
|
||||
await this.ringtone.play();
|
||||
await this.#ringtone.play();
|
||||
});
|
||||
}
|
||||
|
||||
async stopRingtone() {
|
||||
await ringtoneEventQueue.add(async () => {
|
||||
if (this.ringtone) {
|
||||
this.ringtone.stop();
|
||||
this.ringtone = undefined;
|
||||
if (this.#ringtone) {
|
||||
this.#ringtone.stop();
|
||||
this.#ringtone = undefined;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue