mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 04:55:09 +00:00
chore: Follow up design changes
This commit is contained in:
parent
a9448f293c
commit
92337a8bbf
3 changed files with 16 additions and 2 deletions
|
@ -52,6 +52,8 @@ class ChatMembersController extends State<ChatMembersPage> {
|
||||||
.getRoomById(widget.roomId)
|
.getRoomById(widget.roomId)
|
||||||
?.requestParticipants();
|
?.requestParticipants();
|
||||||
|
|
||||||
|
if (!mounted) return;
|
||||||
|
|
||||||
setState(() {
|
setState(() {
|
||||||
members = participants;
|
members = participants;
|
||||||
});
|
});
|
||||||
|
|
|
@ -43,7 +43,7 @@ class ChatMembersView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => context.go('/rooms/{room.id}/invite'),
|
onPressed: () => context.go('/rooms/${room.id}/invite'),
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
Icons.person_add_outlined,
|
Icons.person_add_outlined,
|
||||||
),
|
),
|
||||||
|
|
|
@ -15,7 +15,19 @@ class InvitationSelectionView extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final room = Matrix.of(context).client.getRoomById(controller.roomId!)!;
|
final room =
|
||||||
|
Matrix.of(context).client.getRoomById(controller.widget.roomId);
|
||||||
|
if (room == null) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: Text(L10n.of(context)!.oopsSomethingWentWrong),
|
||||||
|
),
|
||||||
|
body: Center(
|
||||||
|
child: Text(L10n.of(context)!.youAreNoLongerParticipatingInThisChat),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
final groupName = room.name.isEmpty ? L10n.of(context)!.group : room.name;
|
final groupName = room.name.isEmpty ? L10n.of(context)!.group : room.name;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
|
Loading…
Reference in a new issue