-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E2E: SAS Verification #2372
E2E: SAS Verification #2372
Conversation
…e verification flow when the user taps on "Verify"
…automatically cancelled
Riot/AppDelegate.m
Outdated
deviceVerificationCoordinatorBridgePresenter = nil; | ||
|
||
// TODO: Why? | ||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add a completion on dismiss like dismissAnimated:completion:
on DeviceVerificationCoordinatorBridgePresenter
|
||
// MARK: Public | ||
|
||
var userId: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All properties below from userId
to mediaManager
should use let
instead of var
NotificationCenter.default.addObserver(self, selector: #selector(themeDidChange), name: .themeServiceDidChangeTheme, object: nil) | ||
} | ||
|
||
private func loadData() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using MVVM-C pattern, code in this method should be moved in a view model.
// MARK: - DeviceVerificationStartViewModelCoordinatorDelegate | ||
extension DeviceVerificationStartCoordinator: DeviceVerificationStartViewModelCoordinatorDelegate { | ||
func deviceVerificationStartViewModelUseLegacyVerification(_ viewModel: DeviceVerificationStartViewModelType) { | ||
// TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove?
|
||
@IBOutlet private weak var titleLabel: UILabel! | ||
@IBOutlet private weak var informationLabel: UILabel! | ||
@IBOutlet weak var waitingPartnerLabel: UILabel! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing some private
on outlets
|
||
@IBOutlet private weak var titleLabel: UILabel! | ||
@IBOutlet private weak var informationLabel: UILabel! | ||
@IBOutlet weak var decimalLabel: UILabel! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing some private
on outlets
…ithout a random sleep
Requires matrix-org/matrix-ios-sdk#652.
Closes #2323