2
0
mirror of synced 2025-01-09 05:42:43 +00:00

[ios][messaging] Clear pending messages once sent to JS

This commit is contained in:
Chris Bianca 2018-05-17 08:27:23 +01:00
parent dc793696fe
commit 92fa2f102a

View File

@ -202,6 +202,7 @@ RCT_EXPORT_METHOD(jsInitialised:(RCTPromiseResolveBlock)resolve rejecter:(RCTPro
for (id message in pendingMessages) {
[RNFirebaseUtil sendJSEvent:self name:MESSAGING_MESSAGE_RECEIVED body:message];
}
pendingMessages = nil;
}
}