Debug logs for include leave
This commit is contained in:
parent
ea74096c35
commit
144902f681
|
@ -47,7 +47,7 @@ class Connection {
|
||||||
String get _syncFilters =>
|
String get _syncFilters =>
|
||||||
"{\"room\":{\"state\":{\"lazy_load_members\":${client.lazyLoadMembers ? "1" : "0"}}}";
|
"{\"room\":{\"state\":{\"lazy_load_members\":${client.lazyLoadMembers ? "1" : "0"}}}";
|
||||||
String get _firstSyncFilters =>
|
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
|
/// Handles the connection to the Matrix Homeserver. You can change this to a
|
||||||
/// MockClient for testing.
|
/// MockClient for testing.
|
||||||
|
@ -310,6 +310,7 @@ class Connection {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _handleRooms(Map<String, dynamic> rooms, String membership) {
|
void _handleRooms(Map<String, dynamic> rooms, String membership) {
|
||||||
|
print("[DEBUG] Received ${rooms.length} $membership rooms");
|
||||||
rooms.forEach((String id, dynamic room) async {
|
rooms.forEach((String id, dynamic room) async {
|
||||||
// calculate the notification counts, the limitedTimeline and prevbatch
|
// calculate the notification counts, the limitedTimeline and prevbatch
|
||||||
num highlight_count = 0;
|
num highlight_count = 0;
|
||||||
|
|
Loading…
Reference in a new issue