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
|
|
@ -83,7 +83,10 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
return widget.clients[_activeClient];
|
||||
}
|
||||
|
||||
VoipPlugin get voipPlugin => VoipPlugin(client: client, context: context);
|
||||
bool get webrtcIsSupported => PlatformInfos.isMobile;
|
||||
|
||||
VoipPlugin? get voipPlugin =>
|
||||
webrtcIsSupported ? VoipPlugin(client: client, context: context) : null;
|
||||
|
||||
bool get isMultiAccount => widget.clients.length > 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue