Optimize call

This commit is contained in:
2025-12-28 00:46:21 +08:00
parent 200cf3ec80
commit 8bc01f1b97
2 changed files with 59 additions and 41 deletions

View File

@@ -43,6 +43,7 @@ class AudioCallButton extends HookConsumerWidget {
isLoading.value = true;
try {
await apiClient.post('/sphere/chat/realtime/${room.id}');
ref.invalidate(ongoingCallProvider(room.id));
// Just join the room, the overlay will handle the UI
await callNotifier.joinRoom(room);
} catch (e) {