- Direct m.login.password auth against matrix.m8chat.au - Room list with unread badges, last message, timestamps - Chat timeline (text, images, files, replies, reactions) - Profile screen with expandable Notifications and Security sections - Olm E2EE initialisation (web WASM bootstrap) - Global error handler preventing Matrix SDK crashes - GoRouter with refreshListenable (no recreation on auth change) - Feature-first clean architecture: Riverpod + GoRouter + Drift - Deployed to https://app2.m8chat.au Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
778 B
Dart
26 lines
778 B
Dart
// Version: 1.0.0 | Created: 2026-04-01
|
|
// Call controller stub. LiveKit integration deferred to Phase 2.
|
|
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
import '../domain/call_state.dart';
|
|
|
|
part 'call_controller.g.dart';
|
|
|
|
@Riverpod(keepAlive: false)
|
|
class CallController extends _$CallController {
|
|
@override
|
|
CallState build() => const CallState.idle();
|
|
|
|
/// Phase 2: join a LiveKit room via MatrixRTC JWT endpoint.
|
|
Future<void> joinCall(String roomId) async {
|
|
state = CallState.connecting(roomId: roomId);
|
|
// TODO(phase2): fetch JWT from AppConfig.livekitJwtUrl and connect LiveKit client.
|
|
state = const CallState.ended(reason: 'Calls not yet implemented.');
|
|
}
|
|
|
|
Future<void> endCall() async {
|
|
state = const CallState.ended();
|
|
}
|
|
}
|