Skip to content

Commit 9e54ed5

Browse files
authored
Merge pull request #87 from channel-io/develop
0.7.4
2 parents bd246f0 + 62e95eb commit 9e54ed5

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
# 0.7.4
2+
3+
## Update
4+
* iOS - Fixed an issue where changed to false when unsubscribeText / unsubscribeEmail is empty
5+
6+
17
# 0.7.3
28

39
## Update
410
* support android channel-io 10.0.3
5-
* iOS - Fixed an issue where changed to false when unsubscribeText / unsubscribeEmail is empty
611

712
# 0.7.2
813

ios/RCTConvert+ChannelIO.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,16 @@ + (BootConfig *)bootConfig:(id)json {
6666
? [RCTConvert BOOL:json[KEY_HIDE_POPUP]] : [RCTConvert BOOL:json[KEY_HIDE_DEFAULT_IN_APP_PUSH]];
6767
config.trackDefaultEvent = json[KEY_TRACK_DEFAULT_EVENT] != nil
6868
? [RCTConvert BOOL:json[KEY_TRACK_DEFAULT_EVENT]] : [RCTConvert BOOL:json[KEY_ENABLED_TRACK_DEFAULT_EVENT]];
69-
config.unsubscribeEmail = [RCTConvert BOOL:json[KEY_UNSUBSCRIBE_EMAIL]];
70-
config.unsubscribeTexting = [RCTConvert BOOL:json[KEY_UNSUBSCRIBE_TEXTING]];
7169
config.bubbleOption = [RCTConvert bubbleOption:json[KEY_BUBBLE_OPTION]];
7270

71+
if (json[KEY_UNSUBSCRIBE_EMAIL] != nil) {
72+
[config setWithUnsubscribeEmail: [RCTConvert BOOL:json[KEY_UNSUBSCRIBE_EMAIL]]];
73+
}
74+
75+
if (json[KEY_UNSUBSCRIBE_TEXTING] != nil) {
76+
[config setWithUnsubscribeTexting: [RCTConvert BOOL:json[KEY_UNSUBSCRIBE_TEXTING]]];
77+
}
78+
7379
if (json[KEY_LAUNCHER_CONFIG] == nil && json[KEY_CHANNEL_BUTTON_OPTION] != nil) {
7480
config.channelButtonOption = [RCTConvert channelButtonOption:json[KEY_CHANNEL_BUTTON_OPTION]];
7581
} else if (json[KEY_LAUNCHER_CONFIG] != nil && json[KEY_CHANNEL_BUTTON_OPTION] == nil) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-channel-plugin",
3-
"version": "0.7.3",
3+
"version": "0.7.4",
44
"description": "react native module for channel io",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)