1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Fix sidebar hiding

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-07-22 09:14:44 +02:00
parent 7ad62a8b1a
commit 1b9b5fd048

View File

@@ -645,7 +645,11 @@ export default class CallView extends React.Component<IProps, IState> {
let sidebar;
if (
(!isOnHold && !transfereeCall) &&
((sidebarShown && this.props.call.type === CallType.Video) || someoneIsScreensharing)
(
(sidebarShown && this.props.call.type === CallType.Video) ||
(someoneIsScreensharing && sidebarShown) ||
isScreensharing
)
) {
sidebar = (
<CallViewSidebar