Display redacted events only if threads enabled

This commit is contained in:
ismailgulek
2022-01-28 04:31:44 +03:00
parent 46ef160f10
commit 082783e07d
2 changed files with 3 additions and 2 deletions

View File

@@ -329,7 +329,8 @@ static NSString *const kHTMLATagRegexPattern = @"<a href=\"(.*?)\">([^<]*)</a>";
if (isRedacted)
{
// Check whether the event is a thread root or redacted information is required
if ([mxSession.threadingService isEventThreadRoot:event] || _settings.showRedactionsInRoomHistory)
if ((RiotSettings.shared.enableThreads && [mxSession.threadingService isEventThreadRoot:event])
|| _settings.showRedactionsInRoomHistory)
{
MXLogDebug(@"[MXKEventFormatter] Redacted event %@ (%@)", event.description, event.redactedBecause);