From 144902f681de202908a056b4b7193508a07f003b Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 2 Jul 2019 09:55:06 +0200 Subject: [PATCH] Debug logs for include leave --- lib/src/Connection.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/Connection.dart b/lib/src/Connection.dart index 8a2d45f7..78036606 100644 --- a/lib/src/Connection.dart +++ b/lib/src/Connection.dart @@ -47,7 +47,7 @@ class Connection { String get _syncFilters => "{\"room\":{\"state\":{\"lazy_load_members\":${client.lazyLoadMembers ? "1" : "0"}}}"; String get _firstSyncFilters => - "{\"room\":{\"include_leave\":true,\"state\":{\"lazy_load_members\":${client.lazyLoadMembers ? "1" : "0"}}}"; + "{\"room\":{\"include_leave\":1,\"state\":{\"lazy_load_members\":${client.lazyLoadMembers ? "1" : "0"}}}"; /// Handles the connection to the Matrix Homeserver. You can change this to a /// MockClient for testing. @@ -310,6 +310,7 @@ class Connection { } void _handleRooms(Map rooms, String membership) { + print("[DEBUG] Received ${rooms.length} $membership rooms"); rooms.forEach((String id, dynamic room) async { // calculate the notification counts, the limitedTimeline and prevbatch num highlight_count = 0;