mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
11a586a835
Rather than verifying eachothers keys separately, you now verify the privacy with your recipient by sharing a single composite number or QRCode. This is a breaking change, in coordination with Desktop and Android. UX -- Fingeprint is no longer in line with identity key error. Instead you have the option of going to the full-screen safety number verification experience. Overhauled fingerprint design ----------------------------- * use same modal dismiss button as elsewhere * remove fingerprint from settings. * quick slide in animation vs slow fade * existing was painfully slow * blur effect is better metaphor for something slide over top * anyway there was a rendering glitch in the end of fade where underlying navbar would "snap" out Also Fixed ---------- Always provide a name string for contact * Centralize all the nil-checking * Fall back to "unknown contact" allow multi-line error messages // FREEBIE
24 lines
705 B
Objective-C
24 lines
705 B
Objective-C
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import <ZXingObjC/ZXingObjC.h>
|
|
|
|
@class OWSQRCodeScanningViewController;
|
|
|
|
@protocol OWSQRScannerDelegate
|
|
|
|
@optional
|
|
|
|
- (void)controller:(OWSQRCodeScanningViewController *)controller didDetectQRCodeWithString:(NSString *)string;
|
|
- (void)controller:(OWSQRCodeScanningViewController *)controller didDetectQRCodeWithData:(NSData *)data;
|
|
|
|
@end
|
|
|
|
@interface OWSQRCodeScanningViewController
|
|
: UIViewController <AVCaptureMetadataOutputObjectsDelegate, ZXCaptureDelegate>
|
|
|
|
@property (nonatomic, weak) UIViewController<OWSQRScannerDelegate> *scanDelegate;
|
|
- (void)startCapture;
|
|
|
|
@end
|