Hide direct call notification when window is active
This commit is contained in:
parent
8ace4b6321
commit
8144d758ae
1 changed files with 3 additions and 2 deletions
|
@ -468,8 +468,9 @@ async function showCallNotification(
|
||||||
title: string,
|
title: string,
|
||||||
isVideoCall: boolean
|
isVideoCall: boolean
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const canNotify = await window.getCallSystemNotification();
|
const shouldNotify =
|
||||||
if (!canNotify) {
|
!window.isActive() && (await window.getCallSystemNotification());
|
||||||
|
if (!shouldNotify) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
notify({
|
notify({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue