Move threads enabling logic to the coordinator

This commit is contained in:
ismailgulek
2022-04-05 11:35:57 +03:00
parent a0d21cac5d
commit c07f06c2bc
2 changed files with 2 additions and 2 deletions
@@ -30,6 +30,8 @@ final class ThreadsBetaCoordinator: NSObject, ThreadsBetaCoordinatorProtocol {
let result = ThreadsBetaViewController.instantiate()
result.didTapEnableButton = { [weak self] in
guard let self = self else { return }
RiotSettings.shared.enableThreads = true
MXSDKOptions.sharedInstance().enableThreads = true
self.delegate?.threadsBetaCoordinatorDidTapEnable(self)
}
result.didTapCancelButton = { [weak self] in