Merge pull request #322 from vector-im/dbkr/blocked_sound_on_timeout
Play the blocked sound on time limit
This commit is contained in:
@@ -73,9 +73,9 @@ export const usePTT = (
|
|||||||
playClip(PTTClipID.START_TALKING_REMOTE);
|
playClip(PTTClipID.START_TALKING_REMOTE);
|
||||||
}
|
}
|
||||||
} else if (
|
} else if (
|
||||||
activeSpeakerFeed &&
|
pttButtonHeld &&
|
||||||
activeSpeakerUserId === client.getUserId() &&
|
activeSpeakerUserId === client.getUserId() &&
|
||||||
activeSpeakerFeed.userId !== client.getUserId()
|
activeSpeakerFeed?.userId !== client.getUserId()
|
||||||
) {
|
) {
|
||||||
// We were talking but we've been cut off
|
// We were talking but we've been cut off
|
||||||
playClip(PTTClipID.BLOCKED);
|
playClip(PTTClipID.BLOCKED);
|
||||||
@@ -108,7 +108,7 @@ export const usePTT = (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [userMediaFeeds, activeSpeakerUserId, client, playClip]);
|
}, [userMediaFeeds, activeSpeakerUserId, client, playClip, pttButtonHeld]);
|
||||||
|
|
||||||
const startTalking = useCallback(async () => {
|
const startTalking = useCallback(async () => {
|
||||||
if (pttButtonHeld) return;
|
if (pttButtonHeld) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user