chore: Do not create VoipPlugin on not supported platforms
This commit is contained in:
parent
ffb63e6ff6
commit
04ba24b6a6
3 changed files with 10 additions and 9 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue