Show share UI for backups.

pull/1/head
Matthew Chen 7 years ago
parent ea945558c8
commit 2011dae8b6

@ -55,6 +55,8 @@ NS_ASSUME_NONNULL_BEGIN
OWSAssertIsOnMainThread(); OWSAssertIsOnMainThread();
// TODO: Should the user pick a password? // TODO: Should the user pick a password?
// If not, should probably generate something more user-friendly,
// e.g. case-insensitive set of hexadecimal?
NSString *password = [NSUUID UUID].UUIDString; NSString *password = [NSUUID UUID].UUIDString;
self.password = password; self.password = password;
DDLogVerbose(@"%@ backup export complete; password: %@", self.logTag, password); DDLogVerbose(@"%@ backup export complete; password: %@", self.logTag, password);
@ -112,6 +114,8 @@ NS_ASSUME_NONNULL_BEGIN
OWSAssert(completion); OWSAssert(completion);
OWSAssert(self.password.length > 0); OWSAssert(self.password.length > 0);
// TODO: We probably want to offer an option that lets users copy
// the password to the pasteboard.
NSString *title NSString *title
= NSLocalizedString(@"BACKUP_EXPORT_COMPLETE_ALERT_TITLE", @"Title for the 'backup export complete' alert."); = NSLocalizedString(@"BACKUP_EXPORT_COMPLETE_ALERT_TITLE", @"Title for the 'backup export complete' alert.");
NSString *message = [NSString NSString *message = [NSString

Loading…
Cancel
Save