[ios][messaging] Clear pending messages once sent to JS
This commit is contained in:
parent
dc793696fe
commit
92fa2f102a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue