[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
1 changed files with 1 additions and 0 deletions

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;
}
}