chore: Do not create VoipPlugin on not supported platforms

This commit is contained in:
Krille Fear 2022-02-17 19:46:02 +01:00
commit 04ba24b6a6
3 changed files with 10 additions and 9 deletions

View file

@ -113,7 +113,7 @@ class ChatView extends StatelessWidget {
];
} else {
return [
if (controller.webrtcIsSupported)
if (Matrix.of(context).webrtcIsSupported)
IconButton(
onPressed: controller.onPhoneButtonTap,
icon: const Icon(Icons.call_outlined),