Merge remote-tracking branch 'origin/ref/segregate-api-layer' into ref/segregate-api-layer
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
# Fast fail the script on failures.
|
||||
set -e
|
||||
|
||||
pub global activate remove_from_coverage
|
||||
pub global activate remove_from_coverage --overwrite
|
||||
pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r '\.g\.dart$' -r '\.freezed\.dart$'
|
||||
@@ -102,4 +102,4 @@ jobs:
|
||||
uses: VeryGoodOpenSource/[email protected]
|
||||
with:
|
||||
path: packages/stream_chat_flutter/coverage/lcov.info
|
||||
min_coverage: 35
|
||||
min_coverage: 35
|
||||
@@ -145,4 +145,4 @@ linter:
|
||||
- cast_nullable_to_non_nullable
|
||||
- unnecessary_null_checks
|
||||
- tighten_type_of_initializing_formals
|
||||
- null_check_on_nullable_type_parameter
|
||||
- null_check_on_nullable_type_parameter
|
||||
+1
-1
@@ -71,4 +71,4 @@ scripts:
|
||||
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
flutter: '>=1.22.4 <2.0.0'
|
||||
flutter: '>=1.22.4 <2.0.0'
|
||||
@@ -125,7 +125,8 @@ class StreamChatCoreState extends State<StreamChatCore>
|
||||
_isConnectionAvailable = result != ConnectivityResult.none;
|
||||
if (!_isInForeground) return;
|
||||
if (_isConnectionAvailable) {
|
||||
if (client.wsConnectionStatus == ConnectionStatus.disconnected) {
|
||||
if (client.wsConnectionStatus == ConnectionStatus.disconnected &&
|
||||
user != null) {
|
||||
client.openConnection();
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user