Introduce canMerge method on timeline style

This commit is contained in:
ismailgulek
2022-06-13 17:55:31 +03:00
parent 8e5170685d
commit e540adfa14
3 changed files with 12 additions and 1 deletions
@@ -39,7 +39,10 @@ protocol RoomTimelineStyle: Themable {
/// Indicate to merge or not event in timeline
func canAddEvent(_ event: MXEvent, and roomState: MXRoomState, to cellData: MXKRoomBubbleCellData) -> Bool
/// Indicate to merge or not the `cellData` into `receiverCellData`
func canMerge(cellData: MXKRoomBubbleCellDataStoring, into receiverCellData: MXKRoomBubbleCellDataStoring) -> Bool
/// Apply selected or blurred style on cell
func applySelectedStyleIfNeeded(toCell cell: MXKRoomBubbleTableViewCell, cellData: RoomBubbleCellData)
}