Chat room details, invitions and members management

This commit is contained in:
2025-05-03 20:42:37 +08:00
parent e2e6de965b
commit efdddf72e4
26 changed files with 1915 additions and 201 deletions

View File

@ -22,7 +22,9 @@ class AccountScreen extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final user = ref.watch(userInfoProvider);
if (!user.hasValue) return _UnauthorizedAccountScreen();
if (!user.hasValue || user.value == null) {
return _UnauthorizedAccountScreen();
}
return AppScaffold(
appBar: AppBar(title: const Text('Account')),
@ -52,7 +54,7 @@ class AccountScreen extends HookConsumerWidget {
spacing: 16,
children: [
ProfilePictureWidget(
fileId: user.value!.profile.pictureId,
fileId: user.value?.profile.pictureId,
radius: 24,
),
Column(