From 2011dae8b6040dfe07fc385af73be2295b6809e3 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 4 Jan 2018 17:49:57 -0500 Subject: [PATCH] Show share UI for backups. --- Signal/src/util/OWSBackup.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Signal/src/util/OWSBackup.m b/Signal/src/util/OWSBackup.m index 52b1b3f8c..5ac982164 100644 --- a/Signal/src/util/OWSBackup.m +++ b/Signal/src/util/OWSBackup.m @@ -55,6 +55,8 @@ NS_ASSUME_NONNULL_BEGIN OWSAssertIsOnMainThread(); // 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; self.password = password; DDLogVerbose(@"%@ backup export complete; password: %@", self.logTag, password); @@ -112,6 +114,8 @@ NS_ASSUME_NONNULL_BEGIN OWSAssert(completion); OWSAssert(self.password.length > 0); + // TODO: We probably want to offer an option that lets users copy + // the password to the pasteboard. NSString *title = NSLocalizedString(@"BACKUP_EXPORT_COMPLETE_ALERT_TITLE", @"Title for the 'backup export complete' alert."); NSString *message = [NSString