Open & reply to thread only if threads enabled

This commit is contained in:
ismailgulek
2022-03-08 17:09:29 +03:00
parent 3a4d1d62dd
commit 49683e11d3
2 changed files with 2 additions and 2 deletions

View File

@@ -484,7 +484,7 @@ Matrix session observer used to detect new opened sessions.
// initialize data source for a thread or a room
__block MXKRoomDataSource *dataSource;
dispatch_group_t dispatchGroupDataSource = dispatch_group_create();
if (threadId)
if (RiotSettings.shared.enableThreads && threadId)
{
dispatch_group_enter(dispatchGroupDataSource);
[ThreadDataSource loadRoomDataSourceWithRoomId:roomId

View File

@@ -2993,7 +2993,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
ScreenPresentationParameters *presentationParameters = [[ScreenPresentationParameters alloc] initWithRestoreInitialDisplay:YES];
ThreadParameters *threadParameters = nil;
if (threadId)
if (RiotSettings.shared.enableThreads && threadId)
{
threadParameters = [[ThreadParameters alloc] initWithThreadId:threadId stackRoomScreen:NO];
}