fix(messaging,ios): crash receiving notification with image (#3701)

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

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

[publish]
This commit is contained in:
Mathieu Acthernoene
2020-05-28 23:33:56 +02:00
committed by GitHub
parent 5cda0ddf3c
commit f889646d2e

View File

@@ -113,7 +113,7 @@
}
// 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"]]);
}