Merge remote-tracking branch 'origin/ref/segregate-api-layer' into ref/segregate-api-layer

This commit is contained in:
Sahil Kumar
2021-06-21 16:05:45 +05:30
5 changed files with 6 additions and 5 deletions
@@ -3,5 +3,5 @@
# Fast fail the script on failures. # Fast fail the script on failures.
set -e 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$' pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r '\.g\.dart$' -r '\.freezed\.dart$'
@@ -125,7 +125,8 @@ class StreamChatCoreState extends State<StreamChatCore>
_isConnectionAvailable = result != ConnectivityResult.none; _isConnectionAvailable = result != ConnectivityResult.none;
if (!_isInForeground) return; if (!_isInForeground) return;
if (_isConnectionAvailable) { if (_isConnectionAvailable) {
if (client.wsConnectionStatus == ConnectionStatus.disconnected) { if (client.wsConnectionStatus == ConnectionStatus.disconnected &&
user != null) {
client.openConnection(); client.openConnection();
} }
} else { } else {