mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-04 22:56:45 +08:00
[ml-natural-language][ios] userID is now required on the iOS SDK - use a default value if non provided (android is still optional)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
[FIRTextMessage alloc]
|
||||
initWithText:messageDict[@"text"]
|
||||
timestamp:[[messageDict valueForKey:@"timestamp"] doubleValue]
|
||||
userID:messageDict[@"remoteUserId"] ? messageDict[@"remoteUserId"] : nil
|
||||
userID:messageDict[@"remoteUserId"] ? messageDict[@"remoteUserId"] : @"__rnfb_local_user"
|
||||
isLocalUser:messageDict[@"remoteUserId"] ? NO : YES
|
||||
];
|
||||
return firTextMessage;
|
||||
|
||||
Reference in New Issue
Block a user