We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c16c143 commit 941f8bcCopy full SHA for 941f8bc
2 files changed
lib/features/call/extensions/active_call_extension.dart
@@ -0,0 +1,18 @@
1
+import '../bloc/call_bloc.dart';
2
+import '../models/models.dart';
3
+
4
+extension ActiveCallListAutoCompact on List<ActiveCall> {
5
+ /// Determines if auto-hide (Compact Mode) is active.
6
+ bool get shouldAutoCompact {
7
+ var hasAnyVideo = false;
8
9
+ for (final c in this) {
10
+ if (c.wasHungUp) return false;
11
+ if (c.processingStatus != CallProcessingStatus.connected) return false;
12
13
+ hasAnyVideo = hasAnyVideo || (c.cameraEnabled && c.remoteVideo);
14
+ }
15
16
+ return hasAnyVideo;
17
18
+}
lib/features/call/extensions/extensions.dart
@@ -1,3 +1,4 @@
+export 'active_call_extension.dart';
export 'callkeep_signaling_status_converter.dart';
export 'connectivity.dart';
export 'processing_status.dart';
0 commit comments