mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Get calls configuration
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:comunic/helpers/calls_helper.dart';
|
||||
import 'package:comunic/helpers/conversations_helper.dart';
|
||||
import 'package:comunic/models/call_config.dart';
|
||||
import 'package:comunic/models/conversation.dart';
|
||||
import 'package:comunic/ui/widgets/comunic_back_button_widget.dart';
|
||||
import 'package:comunic/ui/widgets/safe_state.dart';
|
||||
@ -30,6 +31,7 @@ class _CallScreenState extends SafeState<CallScreen> {
|
||||
// State properties
|
||||
Conversation _conversation;
|
||||
String _convName;
|
||||
CallConfig _conf;
|
||||
var _error = false;
|
||||
|
||||
@override
|
||||
@ -58,6 +60,9 @@ class _CallScreenState extends SafeState<CallScreen> {
|
||||
|
||||
// Join the call
|
||||
await CallsHelper.join(convID);
|
||||
|
||||
// Get call configuration
|
||||
_conf = await CallsHelper.getConfig();
|
||||
} catch (e, stack) {
|
||||
print("Could not initialize call! $e\n$stack");
|
||||
setState(() => _error = true);
|
||||
|
Reference in New Issue
Block a user