fix models

This commit is contained in:
Salvatore Giordano
2021-04-13 15:48:05 +02:00
parent fe07b8dbb0
commit 97c35371af
29 changed files with 193 additions and 308 deletions
+6 -4
View File
@@ -573,9 +573,11 @@ class StreamChatClient {
var event = await _chatPersistenceClient?.getConnectionInfo();
await _ws.connect()!.then((e) async {
await _chatPersistenceClient?.updateConnectionInfo(e);
event = e;
await _ws.connect().then((e) async {
if (e != null) {
await _chatPersistenceClient?.updateConnectionInfo(e);
event = e;
}
await resync();
}).catchError((err, stacktrace) {
logger.severe('error connecting ws', err, stacktrace);
@@ -737,7 +739,7 @@ class StreamChatClient {
QueryChannelsResponse.fromJson,
)!;
if ((res.channels ?? []).isEmpty && (paginationParams.offset) == 0) {
if ((res.channels ?? []).isEmpty && paginationParams.offset == 0) {
logger.warning(
'''
We could not find any channel for this query.