mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Disable thread filtering on regular timeline when threads disabled
This commit is contained in:
@@ -270,22 +270,29 @@ const CGFloat kTypingCellHeight = 24;
|
||||
}
|
||||
else
|
||||
{
|
||||
// if not in a thread, ignore all threaded events
|
||||
if (event.isInThread)
|
||||
if (RiotSettings.shared.enableThreads)
|
||||
{
|
||||
// ignore the event
|
||||
return NO;
|
||||
}
|
||||
// also ignore events related to threaded events
|
||||
if (event.relatesTo.eventId)
|
||||
{
|
||||
MXEvent *relatedEvent = [self.mxSession.store eventWithEventId:event.relatesTo.eventId
|
||||
inRoom:event.roomId];
|
||||
if (relatedEvent.isInThread)
|
||||
// if not in a thread, ignore all threaded events
|
||||
if (event.isInThread)
|
||||
{
|
||||
// ignore the event
|
||||
return NO;
|
||||
}
|
||||
// also ignore events related to threaded events
|
||||
if (event.relatesTo.eventId)
|
||||
{
|
||||
MXEvent *relatedEvent = [self.mxSession.store eventWithEventId:event.relatesTo.eventId
|
||||
inRoom:event.roomId];
|
||||
if (relatedEvent.isInThread)
|
||||
{
|
||||
// ignore the event
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user