mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Move threads enabling logic to the coordinator
This commit is contained in:
parent
bd6794af71
commit
13a0e63ec4
2 changed files with 2 additions and 2 deletions
|
@ -7440,8 +7440,6 @@ static CGSize kThreadListBarButtonItemImageSize;
|
|||
MXWeakify(self);
|
||||
[self.threadsBetaBridgePresenter dismissWithAnimated:YES completion:^{
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
RiotSettings.shared.enableThreads = YES;
|
||||
MXSDKOptions.sharedInstance.enableThreads = YES;
|
||||
[self cancelEventSelection];
|
||||
[self.roomDataSource reload];
|
||||
[self openThreadWithId:coordinatorBridgePresenter.threadId];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue