mirror of
https://github.com/status-im/react-native-firebase.git
synced 2026-08-30 21:51:15 +00:00
[ios][messaging] Clear pending messages once sent to JS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user