File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
## 2.3.1
2
2
3
3
* Fix connection timeout on iOS
4
+ * Fix emitting current connection state on iOS
4
5
5
6
## 2.3.0
6
7
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ - (void)observeConnectionState:(FlutterMethodCall *)call result:(FlutterResult)r
235
235
BOOL emitCurrentValue = ((NSNumber *)call.arguments [ARGUMENT_KEY_EMIT_CURRENT_VALUE]).boolValue ;
236
236
if (emitCurrentValue == YES ) {
237
237
Resolve resolve = ^(id isConnected) {
238
- if (( BOOL ) isConnected == YES ) {
238
+ if ([ isConnected boolValue ] == YES ) {
239
239
[self .connectionStateStreamHandler onConnectedEvent: call.arguments[ARGUMENT_KEY_DEVICE_IDENTIFIER]];
240
240
} else {
241
241
[self .connectionStateStreamHandler emitDisconnectedEvent: call.arguments[ARGUMENT_KEY_DEVICE_IDENTIFIER]];
You can’t perform that action at this time.
0 commit comments