refactor: Avoid redundant async
This commit is contained in:
parent
9d007815df
commit
d08364688e
15 changed files with 153 additions and 166 deletions
|
|
@ -189,7 +189,7 @@ class MyCallingPage extends State<Calling> {
|
|||
_playCallSound();
|
||||
}
|
||||
|
||||
void initialize() async {
|
||||
void initialize() {
|
||||
final call = this.call;
|
||||
call.onCallStateChanged.stream.listen(_handleCallState);
|
||||
call.onCallEventChanged.stream.listen((event) {
|
||||
|
|
@ -282,7 +282,7 @@ class MyCallingPage extends State<Calling> {
|
|||
});
|
||||
}
|
||||
|
||||
void _screenSharing() async {
|
||||
void _screenSharing() {
|
||||
if (PlatformInfos.isAndroid) {
|
||||
if (!call.screensharingEnabled) {
|
||||
FlutterForegroundTask.init(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue