Move hasThreadRoot into MXKRoomBubbleCellDataStoring protocol

This commit is contained in:
ismailgulek
2022-06-13 13:52:46 +03:00
parent eb430fa742
commit 9b542fd8f8
3 changed files with 21 additions and 21 deletions
@@ -86,11 +86,6 @@
*/
@property (nonatomic, readonly) BOOL hasLink;
/**
Whether the data has a thread root in its components.
*/
@property (nonatomic, readonly) BOOL hasThreadRoot;
/**
Event formatter
*/
@@ -467,6 +467,22 @@
}
}
- (BOOL)hasThreadRoot
{
@synchronized (bubbleComponents)
{
for (MXKRoomBubbleComponent *component in bubbleComponents)
{
if (component.thread)
{
return YES;
}
}
}
return NO;
}
#pragma mark -
- (void)invalidateTextLayout
@@ -656,22 +672,6 @@
return NO;
}
- (BOOL)hasThreadRoot
{
@synchronized (bubbleComponents)
{
for (MXKRoomBubbleComponent *component in bubbleComponents)
{
if (component.thread)
{
return YES;
}
}
}
return NO;
}
- (MXKRoomBubbleComponentDisplayFix)displayFix
{
MXKRoomBubbleComponentDisplayFix displayFix = MXKRoomBubbleComponentDisplayFixNone;
@@ -117,6 +117,11 @@
*/
@property (nonatomic, readonly) BOOL hasNoDisplay;
/**
Whether the data has a thread root in its components.
*/
@property (nonatomic, readonly) BOOL hasThreadRoot;
/**
The list of events (`MXEvent` instances) handled by this bubble.
*/