hide presences in share mode
This commit is contained in:
parent
da7b6ac27b
commit
2f42cddd08
|
@ -392,9 +392,12 @@ class _ChatListState extends State<ChatList> {
|
||||||
final int publicRoomsCount =
|
final int publicRoomsCount =
|
||||||
(publicRoomsResponse?.publicRooms?.length ?? 0);
|
(publicRoomsResponse?.publicRooms?.length ?? 0);
|
||||||
final int totalCount = rooms.length + publicRoomsCount;
|
final int totalCount = rooms.length + publicRoomsCount;
|
||||||
return ListView.separated(
|
return selectMode == SelectMode.share
|
||||||
|
? Container()
|
||||||
|
: ListView.separated(
|
||||||
controller: _scrollController,
|
controller: _scrollController,
|
||||||
separatorBuilder: (BuildContext context, int i) =>
|
separatorBuilder: (BuildContext context,
|
||||||
|
int i) =>
|
||||||
i == totalCount - publicRoomsCount
|
i == totalCount - publicRoomsCount
|
||||||
? Material(
|
? Material(
|
||||||
elevation: 2,
|
elevation: 2,
|
||||||
|
@ -417,13 +420,15 @@ class _ChatListState extends State<ChatList> {
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 81,
|
height: 81,
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection:
|
||||||
|
Axis.horizontal,
|
||||||
itemCount: Matrix.of(context)
|
itemCount: Matrix.of(context)
|
||||||
.client
|
.client
|
||||||
.statusList
|
.statusList
|
||||||
.length,
|
.length,
|
||||||
itemBuilder:
|
itemBuilder:
|
||||||
(BuildContext context, int i) =>
|
(BuildContext context,
|
||||||
|
int i) =>
|
||||||
PresenceListItem(
|
PresenceListItem(
|
||||||
Matrix.of(context)
|
Matrix.of(context)
|
||||||
.client
|
.client
|
||||||
|
|
Loading…
Reference in a new issue