feat: Phase 1 complete — Matrix login, rooms, chat, profile
- 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>
This commit is contained in:
16
lib/features/rooms/presentation/rooms_controller.dart
Normal file
16
lib/features/rooms/presentation/rooms_controller.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
// Version: 1.0.0 | Created: 2026-04-01
|
||||
// Riverpod provider that streams the rooms list to the UI.
|
||||
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
import '../data/rooms_repository.dart';
|
||||
import '../domain/room_model.dart';
|
||||
|
||||
part 'rooms_controller.g.dart';
|
||||
|
||||
/// Streams the rooms list. Rebuilds whenever Matrix sync produces changes.
|
||||
@riverpod
|
||||
Stream<List<RoomModel>> roomsList(Ref ref) {
|
||||
final repo = ref.watch(roomsRepositoryProvider);
|
||||
return repo.watchRooms();
|
||||
}
|
||||
Reference in New Issue
Block a user