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,
|
||||
isVideoCall: boolean
|
||||
): Promise<void> {
|
||||
const canNotify = await window.getCallSystemNotification();
|
||||
if (!canNotify) {
|
||||
const shouldNotify =
|
||||
!window.isActive() && (await window.getCallSystemNotification());
|
||||
if (!shouldNotify) {
|
||||
return;
|
||||
}
|
||||
notify({
|
||||
|
|
Loading…
Reference in a new issue