hide presences in share mode

This commit is contained in:
Christian Pauly 2020-05-09 13:04:09 +02:00
parent da7b6ac27b
commit 2f42cddd08

View File

@ -392,9 +392,12 @@ class _ChatListState extends State<ChatList> {
final int publicRoomsCount =
(publicRoomsResponse?.publicRooms?.length ?? 0);
final int totalCount = rooms.length + publicRoomsCount;
return ListView.separated(
return selectMode == SelectMode.share
? Container()
: ListView.separated(
controller: _scrollController,
separatorBuilder: (BuildContext context, int i) =>
separatorBuilder: (BuildContext context,
int i) =>
i == totalCount - publicRoomsCount
? Material(
elevation: 2,
@ -417,13 +420,15 @@ class _ChatListState extends State<ChatList> {
child: Container(
height: 81,
child: ListView.builder(
scrollDirection: Axis.horizontal,
scrollDirection:
Axis.horizontal,
itemCount: Matrix.of(context)
.client
.statusList
.length,
itemBuilder:
(BuildContext context, int i) =>
(BuildContext context,
int i) =>
PresenceListItem(
Matrix.of(context)
.client