[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:
Salakar
2019-07-30 05:27:04 +01:00
parent 5c7941c7ad
commit 8e417ee50b

View File

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