chore: Make webRTC opt-in

This commit is contained in:
Krille Fear 2022-02-19 11:58:21 +01:00
commit 74100bd777
7 changed files with 30 additions and 16 deletions

View file

@ -113,7 +113,7 @@ class ChatView extends StatelessWidget {
];
} else {
return [
if (Matrix.of(context).webrtcIsSupported &&
if (Matrix.of(context).voipPlugin != null &&
controller.room!.isDirectChat)
IconButton(
onPressed: controller.onPhoneButtonTap,