chore: Avoid unnecessary lambdas

This commit is contained in:
Christian Kußowski 2026-02-20 14:19:03 +01:00
commit a0a03941c2
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
13 changed files with 19 additions and 32 deletions

View file

@ -194,9 +194,7 @@ class MyCallingPage extends State<Calling> {
call.onCallStateChanged.stream.listen(_handleCallState);
call.onCallEventChanged.stream.listen((event) {
if (event == CallStateChange.kFeedsChanged) {
setState(() {
call.tryRemoveStopedStreams();
});
setState(call.tryRemoveStopedStreams);
} else if (event == CallStateChange.kLocalHoldUnhold ||
event == CallStateChange.kRemoteHoldUnhold) {
setState(() {});