mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Feed threading option in the SDK
This commit is contained in:
parent
9d83aee4b7
commit
bd12487fd7
2 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,9 @@ class CommonConfiguration: NSObject, Configurable {
|
|||
|
||||
// Disable key backup on common
|
||||
sdkOptions.enableKeyBackupWhenStartingMXCrypto = false
|
||||
|
||||
// Pass threading option to the SDK
|
||||
sdkOptions.enableThreads = RiotSettings.shared.enableThreads
|
||||
|
||||
sdkOptions.clientPermalinkBaseUrl = BuildSettings.clientPermalinkBaseUrl
|
||||
// Configure key provider delegate
|
||||
|
|
|
@ -3210,6 +3210,7 @@ TableViewSectionsDelegate>
|
|||
- (void)toggleEnableThreads:(UISwitch *)sender
|
||||
{
|
||||
RiotSettings.shared.enableThreads = sender.isOn;
|
||||
MXSDKOptions.sharedInstance.enableThreads = sender.isOn;
|
||||
[[MXKRoomDataSourceManager sharedManagerForMatrixSession:self.mainSession] reset];
|
||||
[[AppDelegate theDelegate] restoreEmptyDetailsViewController];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue