Remove NoOneHere disabled reason. (#30524)

* Remove NoOneHere disabled reason.
This was used to prohibit starting calls if the user is alone in the room.
Since there are currently issues with the user count calculation this can disable the button even when not appropriate.

On top of that, there is a reason to start a call if the room was just created and the user is still waiting for the others to join the room to then join the call.

Signed-off-by: Timo K <toger5@hotmail.de>

* some ci fixes

Signed-off-by: Timo K <toger5@hotmail.de>

* fix test snapshots

Signed-off-by: Timo K <toger5@hotmail.de>

* fix test to expect enabled call buttons

* Update snapshot for unit-tests/components/views/rooms/RoomHeader/RoomHeader-test.tsx

---------

Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: fkwp <github-fkwp@w4ve.de>
This commit is contained in:
Timo
2025-08-12 12:07:59 +02:00
committed by GitHub
parent 76be5ccc9e
commit 789dba7b3d
6 changed files with 24 additions and 114 deletions

View File

@@ -1449,8 +1449,8 @@ exports[`RoomView should not display the timeline when the room encryption is lo
</div>
</button>
<button
aria-disabled="true"
aria-label="There's no one here to call"
aria-disabled="false"
aria-label="Video call"
class="_icon-button_1pz9o_8"
data-kind="primary"
role="button"
@@ -1459,7 +1459,7 @@ exports[`RoomView should not display the timeline when the room encryption is lo
>
<div
class="_indicator-icon_zr2a0_17"
style="--cpd-icon-button-size: 100%; --cpd-color-icon-tertiary: var(--cpd-color-icon-disabled);"
style="--cpd-icon-button-size: 100%;"
>
<svg
aria-labelledby="«r2c»"
@@ -1476,8 +1476,8 @@ exports[`RoomView should not display the timeline when the room encryption is lo
</div>
</button>
<button
aria-disabled="true"
aria-label="There's no one here to call"
aria-disabled="false"
aria-label="Voice call"
aria-labelledby="«r2h»"
class="_icon-button_1pz9o_8"
data-kind="primary"
@@ -1487,7 +1487,7 @@ exports[`RoomView should not display the timeline when the room encryption is lo
>
<div
class="_indicator-icon_zr2a0_17"
style="--cpd-icon-button-size: 100%; --cpd-color-icon-tertiary: var(--cpd-color-icon-disabled);"
style="--cpd-icon-button-size: 100%;"
>
<svg
fill="currentColor"
@@ -1661,8 +1661,8 @@ exports[`RoomView should not display the timeline when the room encryption is lo
</div>
</button>
<button
aria-disabled="true"
aria-label="There's no one here to call"
aria-disabled="false"
aria-label="Video call"
class="_icon-button_1pz9o_8"
data-kind="primary"
role="button"
@@ -1671,7 +1671,7 @@ exports[`RoomView should not display the timeline when the room encryption is lo
>
<div
class="_indicator-icon_zr2a0_17"
style="--cpd-icon-button-size: 100%; --cpd-color-icon-tertiary: var(--cpd-color-icon-disabled);"
style="--cpd-icon-button-size: 100%;"
>
<svg
aria-labelledby="«r2c»"
@@ -1688,8 +1688,8 @@ exports[`RoomView should not display the timeline when the room encryption is lo
</div>
</button>
<button
aria-disabled="true"
aria-label="There's no one here to call"
aria-disabled="false"
aria-label="Voice call"
aria-labelledby="«r2h»"
class="_icon-button_1pz9o_8"
data-kind="primary"
@@ -1699,7 +1699,7 @@ exports[`RoomView should not display the timeline when the room encryption is lo
>
<div
class="_indicator-icon_zr2a0_17"
style="--cpd-icon-button-size: 100%; --cpd-color-icon-tertiary: var(--cpd-color-icon-disabled);"
style="--cpd-icon-button-size: 100%;"
>
<svg
fill="currentColor"