Skip to content
Snippets Groups Projects
Commit 8f364437 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update docs

parent 6894899b
No related branches found
No related tags found
2 merge requests!108Remove facts from BackupParams,!102Release 1.0.0
...@@ -148,7 +148,11 @@ let result = try messenger.restoreBackup( ...@@ -148,7 +148,11 @@ let result = try messenger.restoreBackup(
backupPassphrase: "backup-passphrase" backupPassphrase: "backup-passphrase"
) )
// handle restoration result // handle restoration result:
let restoredUsername = result.restoredParams.username
let facts = try messenger.ud.tryGet().getFacts()
let restoredEmail = facts.get(.email)?.value
let restoredPhone = facts.get(.phone)?.value
``` ```
If no error was thrown during restoration, the `Messenger` is already loaded, started, connected, and logged in. If no error was thrown during restoration, the `Messenger` is already loaded, started, connected, and logged in.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment