Skip to content

Commit b685029

Browse files
committed
Adding isSubscribed to the OSEmailSubscriptionState dictionary
1 parent 851d670 commit b685029

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)