From 12e2a8ffc8da041db7208c3e883a0f1d334ffb86 Mon Sep 17 00:00:00 2001 From: Valere Date: Tue, 28 Jul 2020 14:43:50 +0200 Subject: [PATCH] Allow call in all 2 participants rooms --- CHANGES.md | 2 ++ .../vector/matrix/android/api/session/room/model/RoomSummary.kt | 2 +- vector/src/main/res/xml/vector_settings_root.xml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index b1e85e239d..34475b39d1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,8 @@ Bugfix 🐛: - Fix 404 on EMS (#1761) - Fix Infinite loop at startup when migrating account from Riot (#1699) - Fix Element crashes in loop after initial sync (#1709) + - Fix "Voice & Video" grayed out in Settings (#1733) + - Fix Allow VOIP call in all rooms with 2 participants (even if not DM) Translations 🗣: - diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/RoomSummary.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/RoomSummary.kt index b6b0555433..19eac8dc32 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/RoomSummary.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/model/RoomSummary.kt @@ -67,7 +67,7 @@ data class RoomSummary constructor( get() = tags.any { it.name == RoomTag.ROOM_TAG_FAVOURITE } val canStartCall: Boolean - get() = isDirect && joinedMembersCount == 2 + get() = joinedMembersCount == 2 companion object { const val NOT_IN_BREADCRUMBS = -1 diff --git a/vector/src/main/res/xml/vector_settings_root.xml b/vector/src/main/res/xml/vector_settings_root.xml index 79708a2735..882919cb99 100644 --- a/vector/src/main/res/xml/vector_settings_root.xml +++ b/vector/src/main/res/xml/vector_settings_root.xml @@ -24,6 +24,7 @@ app:fragment="im.vector.riotx.features.settings.VectorSettingsPreferencesFragment" />