Skip to content

Commit 7cb8525

Browse files
authored
Merge pull request #781 from OneSignal/fix/add_isSubscribed_Email_State
Add isSubscribed to OSEmailSubscriptionState dictionary
2 parents 851d670 + b685029 commit 7cb8525

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iOS_SDK/OneSignalSDK/Source/OSEmailSubscription.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ - (void)setEmailAddress:(NSString *)emailAddress {
9595
- (NSDictionary *)toDictionary {
9696
return @{
9797
@"emailUserId": _emailUserId ?: [NSNull null],
98-
@"emailAddress": _emailAddress ?: [NSNull null]
98+
@"emailAddress": _emailAddress ?: [NSNull null],
99+
@"isSubscribed": @(self.isSubscribed)
99100
};
100101
}
101102

0 commit comments

Comments
 (0)