refactor (core <-> ui <-> persistence) with the new filter changes.

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-04-27 15:41:00 +05:30
parent f683961581
commit 8c666caa52
24 changed files with 180 additions and 195 deletions
@@ -84,7 +84,7 @@ class ChannelListView extends StatefulWidget {
/// The query filters to use.
/// You can query on any of the custom fields you've defined on the [Channel].
/// You can also filter other built-in channel fields.
final Map<String, dynamic> filter;
final Filter filter;
/// Query channels options.
///
@@ -2096,7 +2096,7 @@ class MessageInputState extends State<MessageInput> {
}
return sendingFuture.then((resp) {
if (resp.message?.type == 'error') {
if (resp.message?._type == 'error') {
_parseExistingMessage(message);
}
if (widget.onMessageSent != null) {
@@ -71,7 +71,7 @@ class MessageSearchListView extends StatefulWidget {
/// The query filters to use.
/// You can query on any of the custom fields you've defined on the [Channel].
/// You can also filter other built-in channel fields.
final Map<String, dynamic> filters;
final Filter filters;
/// The sorting used for the channels matching the filters.
/// Sorting is based on field and direction, multiple sorting options can be provided.