mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-22 17:20:43 +01:00
fix: Stuff
This commit is contained in:
parent
7f6e37adf2
commit
4e8111a150
@ -821,7 +821,9 @@ class _ChatAccountPicker extends StatelessWidget {
|
|||||||
controller.matrix ??= Matrix.of(context);
|
controller.matrix ??= Matrix.of(context);
|
||||||
final clients = controller.matrix.currentBundle;
|
final clients = controller.matrix.currentBundle;
|
||||||
clients.removeWhere((c) => c.getRoomById(controller.roomId) == null);
|
clients.removeWhere((c) => c.getRoomById(controller.roomId) == null);
|
||||||
return FutureBuilder<Profile>(
|
return Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: FutureBuilder<Profile>(
|
||||||
future: controller.matrix.client.ownProfile,
|
future: controller.matrix.client.ownProfile,
|
||||||
builder: (context, snapshot) => PopupMenuButton<String>(
|
builder: (context, snapshot) => PopupMenuButton<String>(
|
||||||
onSelected: _popupMenuButtonSelected,
|
onSelected: _popupMenuButtonSelected,
|
||||||
@ -836,7 +838,8 @@ class _ChatAccountPicker extends StatelessWidget {
|
|||||||
snapshot.data?.displayName ?? client.userID.localpart,
|
snapshot.data?.displayName ?? client.userID.localpart,
|
||||||
size: 20,
|
size: 20,
|
||||||
),
|
),
|
||||||
title: Text(snapshot.data?.displayName ?? client.userID),
|
title:
|
||||||
|
Text(snapshot.data?.displayName ?? client.userID),
|
||||||
contentPadding: EdgeInsets.all(0),
|
contentPadding: EdgeInsets.all(0),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -849,6 +852,7 @@ class _ChatAccountPicker extends StatelessWidget {
|
|||||||
size: 20,
|
size: 20,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user