From f1c10a451f331391e1bc4e529a4e2528199866a6 Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Wed, 24 Mar 2021 00:15:54 -0500 Subject: [PATCH] chore(stream_chat_flutter_core): use local stream_chat --- .../stream_chat_flutter_core/lib/src/stream_channel.dart | 2 +- packages/stream_chat_flutter_core/pubspec.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/stream_chat_flutter_core/lib/src/stream_channel.dart b/packages/stream_chat_flutter_core/lib/src/stream_channel.dart index c2333b05..1160433d 100644 --- a/packages/stream_chat_flutter_core/lib/src/stream_channel.dart +++ b/packages/stream_chat_flutter_core/lib/src/stream_channel.dart @@ -355,7 +355,7 @@ class StreamChannelState extends State { var message = snapshot.error.toString(); if (snapshot.error is DioError) { final dioError = snapshot.error as DioError; - if (dioError.type == DioErrorType.RESPONSE) { + if (dioError.type == DioErrorType.response) { message = dioError.message; } else { message = 'Check your connection and retry'; diff --git a/packages/stream_chat_flutter_core/pubspec.yaml b/packages/stream_chat_flutter_core/pubspec.yaml index 5a5fc7da..b0a72691 100644 --- a/packages/stream_chat_flutter_core/pubspec.yaml +++ b/packages/stream_chat_flutter_core/pubspec.yaml @@ -10,10 +10,11 @@ environment: flutter: ">=1.17.0" dependencies: - stream_chat: ^1.5.0 + stream_chat: + path: ../stream_chat flutter: sdk: flutter - rxdart: ^0.25.0 + rxdart: ^0.26.0 dev_dependencies: mockito: ^4.1.4 @@ -21,4 +22,3 @@ dev_dependencies: sdk: flutter fake_async: ^1.1.0 pedantic: ^1.9.2 - \ No newline at end of file