Feed threading option in the SDK

This commit is contained in:
ismailgulek 2022-01-28 04:32:06 +03:00
parent 9d83aee4b7
commit bd12487fd7
No known key found for this signature in database
GPG key ID: E96336D42D9470A9
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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];
}