proper updating instead of setting things to nil
This commit is contained in:
@@ -101,7 +101,7 @@ class ContactsViewModel : ObservableObject {
|
||||
}
|
||||
|
||||
// setting timestamps to nil to make sure that new server timestamp is set
|
||||
var userFriend = UserFriends(userId: userId, friendId: friendId, isActive: true, lastUpdatedTimestamp: nil, createdTimestamp: nil)
|
||||
var userFriend = UserFriends(userId: userId, friendId: friendId, isActive: true, lastUpdatedTimestamp: nil)
|
||||
|
||||
self.firestoreService.createOrUpdateUserFriends(userFriend: userFriend) {[weak self] res in
|
||||
completion(res)
|
||||
|
||||
Reference in New Issue
Block a user