Use simpler methods for thread check

This commit is contained in:
ismailgulek
2021-12-07 05:18:13 +03:00
parent 91dc172737
commit 93e354f34d
@@ -269,7 +269,7 @@ const CGFloat kTypingCellHeight = 24;
else
{
// if not in a thread, ignore all threaded events
if (event.threadId)
if (event.isInThread)
{
// ignore the event
return NO;
@@ -279,7 +279,7 @@ const CGFloat kTypingCellHeight = 24;
{
MXEvent *relatedEvent = [self.mxSession.store eventWithEventId:event.relatesTo.eventId
inRoom:event.roomId];
if (relatedEvent.threadId)
if (relatedEvent.isInThread)
{
// ignore the event
return NO;