mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
fix: Do not copy room list
This commit is contained in:
parent
fcc66d2820
commit
36fac99de6
@ -261,7 +261,9 @@ class _ChatListViewBody extends StatelessWidget {
|
|||||||
future: controller.waitForFirstSync(),
|
future: controller.waitForFirstSync(),
|
||||||
builder: (BuildContext context, snapshot) {
|
builder: (BuildContext context, snapshot) {
|
||||||
if (Matrix.of(context).client.prevBatch != null) {
|
if (Matrix.of(context).client.prevBatch != null) {
|
||||||
final rooms = List<Room>.from(Matrix.of(context).client.rooms)
|
final rooms = Matrix.of(context)
|
||||||
|
.client
|
||||||
|
.rooms
|
||||||
.where(controller.roomCheck)
|
.where(controller.roomCheck)
|
||||||
.toList();
|
.toList();
|
||||||
if (rooms.isEmpty) {
|
if (rooms.isEmpty) {
|
||||||
|
Loading…
Reference in New Issue
Block a user