Skip to content

Commit

Permalink
fix(messaging,ios): crash receiving notification with image (invertas…
Browse files Browse the repository at this point in the history
…e#3701)

Currently receiving notifications with images will crash the app on iOS (Fixes invertase#3447, invertase#3616).

Patch proposed by @actuosus, thanks to him 🙌 invertase#3447 (comment)

[publish]
  • Loading branch information
zoontek authored and stefkampen committed Jun 6, 2020
1 parent 04c0d32 commit 517787f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ + (NSDictionary *)remoteMessageUserInfoToDict:(NSDictionary *)userInfo {
}

// message.mutableContent
if (apsDict[@"mutable-content"] != nil && [apsDict[@"mutable-content"] isEqualToString:@"1"]) {
if (apsDict[@"mutable-content"] != nil && [apsDict[@"mutable-content"] intValue] == 1) {
message[@"mutableContent"] = @([RCTConvert BOOL:apsDict[@"mutable-content"]]);
}

Expand Down

0 comments on commit 517787f

Please sign in to comment.