diff --git a/CHANGELOG.md b/CHANGELOG.md index 758231c..9a2b395 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change log +## 1.0.0-rc.1 +* fix error of get value + ## 1.0.0-rc.0 * support null safety diff --git a/ios/Classes/AgoraRtmPlugin.m b/ios/Classes/AgoraRtmPlugin.m index 34e6819..9c72ed3 100644 --- a/ios/Classes/AgoraRtmPlugin.m +++ b/ios/Classes/AgoraRtmPlugin.m @@ -438,7 +438,7 @@ -(NSString *)getString:(id)obj{ } -(BOOL)getBool:(id)obj{ if ([obj isEqual:[NSNull null]]) { - return nil; + return NO; } return obj; } diff --git a/pubspec.yaml b/pubspec.yaml index 89543d6..7752c75 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: agora_rtm description: Flutter plugin for Agora RTM SDK. -version: 1.0.0-rc.0 +version: 1.0.0-rc.1 homepage: https://www.agora.io repository: https://github.com/AgoraIO/Flutter-RTM