Main: Prevent refreshing layout during phone call (#1991)
This commit is contained in:
parent
8e177b1eca
commit
b4120c0483
@ -258,7 +258,7 @@ const Main: FC<StateProps> = ({
|
|||||||
|
|
||||||
// Prevent refresh by accidentally rotating device when listening to a voice chat
|
// Prevent refresh by accidentally rotating device when listening to a voice chat
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!activeGroupCallId) {
|
if (!activeGroupCallId && !isPhoneCallActive) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ const Main: FC<StateProps> = ({
|
|||||||
return () => {
|
return () => {
|
||||||
windowSize.enableRefresh();
|
windowSize.enableRefresh();
|
||||||
};
|
};
|
||||||
}, [activeGroupCallId]);
|
}, [activeGroupCallId, isPhoneCallActive]);
|
||||||
|
|
||||||
const leftColumnTransition = useShowTransition(
|
const leftColumnTransition = useShowTransition(
|
||||||
isLeftColumnOpen, undefined, true, undefined, shouldSkipHistoryAnimations,
|
isLeftColumnOpen, undefined, true, undefined, shouldSkipHistoryAnimations,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user