Add URI encoding

This commit is contained in:
Christian Pauly 2019-07-02 09:58:29 +02:00
parent 144902f681
commit e96929de00

View file

@ -44,10 +44,10 @@ class Connection {
}));
}
String get _syncFilters =>
"{\"room\":{\"state\":{\"lazy_load_members\":${client.lazyLoadMembers ? "1" : "0"}}}";
String get _firstSyncFilters =>
"{\"room\":{\"include_leave\":1,\"state\":{\"lazy_load_members\":${client.lazyLoadMembers ? "1" : "0"}}}";
String get _syncFilters => Uri.encodeFull(
"{\"room\":{\"state\":{\"lazy_load_members\":${client.lazyLoadMembers ? "1" : "0"}}}");
String get _firstSyncFilters => Uri.encodeFull(
"{\"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.