refactor: Avoid redundant async

This commit is contained in:
Christian Kußowski 2026-02-19 08:47:10 +01:00
commit d08364688e
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
15 changed files with 153 additions and 166 deletions

View file

@ -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(