mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 23:47:44 +02:00
BubbleRoomTimelineStyle: Handle selected style.
This commit is contained in:
@@ -43,4 +43,19 @@ class BubbleRoomTimelineStyle: RoomTimelineStyle {
|
||||
return false
|
||||
}
|
||||
|
||||
func applySelectedStyleIfNeeded(toCell cell: MXKRoomBubbleTableViewCell, cellData: RoomBubbleCellData) {
|
||||
|
||||
// Check whether the selected event belongs to this bubble
|
||||
let selectedComponentIndex = cellData.selectedComponentIndex
|
||||
if selectedComponentIndex != NSNotFound {
|
||||
|
||||
cell.selectComponent(UInt(selectedComponentIndex),
|
||||
showEditButton: false,
|
||||
showTimestamp: false)
|
||||
|
||||
self.cellDecorator.addTimestampLabel(toCell: cell, cellData: cellData)
|
||||
} else {
|
||||
cell.blurred = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user