Skip to content
Snippets Groups Projects

Messenger example - reset authenticated channel

Merged Dariusz Rybicki requested to merge feature/messenger-reset-contact into development
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -18,7 +18,7 @@ extension AuthCallbackHandlerReset {
@@ -18,7 +18,7 @@ extension AuthCallbackHandlerReset {
guard var dbContact = try db().fetchContacts(.init(id: [id])).first else {
guard var dbContact = try db().fetchContacts(.init(id: [id])).first else {
return
return
}
}
dbContact.authStatus = .stranger
dbContact.authStatus = .friend
dbContact = try db().saveContact(dbContact)
dbContact = try db().saveContact(dbContact)
}
}
}
}
Loading