mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 19:56:57 +02:00
RoomTimelineStyle: Remove useless property.
This commit is contained in:
@@ -34,8 +34,6 @@ class BubbleRoomTimelineStyle: RoomTimelineStyle {
|
||||
|
||||
let cellDecorator: RoomTimelineCellDecorator
|
||||
|
||||
let useVerticalWhiteSpaceForText: Bool
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
init(theme: Theme) {
|
||||
@@ -44,7 +42,6 @@ class BubbleRoomTimelineStyle: RoomTimelineStyle {
|
||||
self.cellLayoutUpdater = BubbleRoomCellLayoutUpdater(theme: theme)
|
||||
self.cellProvider = BubbleRoomTimelineCellProvider()
|
||||
self.cellDecorator = BubbleRoomTimelineCellDecorator()
|
||||
self.useVerticalWhiteSpaceForText = false
|
||||
}
|
||||
|
||||
// MARK: - Public
|
||||
|
||||
@@ -33,9 +33,7 @@ class PlainRoomTimelineStyle: RoomTimelineStyle {
|
||||
let cellProvider: RoomTimelineCellProvider
|
||||
|
||||
let cellDecorator: RoomTimelineCellDecorator
|
||||
|
||||
let useVerticalWhiteSpaceForText: Bool
|
||||
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
init(theme: Theme) {
|
||||
@@ -44,7 +42,6 @@ class PlainRoomTimelineStyle: RoomTimelineStyle {
|
||||
self.cellLayoutUpdater = nil
|
||||
self.cellProvider = PlainRoomTimelineCellProvider()
|
||||
self.cellDecorator = PlainRoomTimelineCellDecorator()
|
||||
self.useVerticalWhiteSpaceForText = true
|
||||
}
|
||||
|
||||
// MARK: - Methods
|
||||
|
||||
@@ -35,9 +35,6 @@ protocol RoomTimelineStyle: Themable {
|
||||
/// Handle cell decorations (reactions, read receipts, URL preview, …)
|
||||
var cellDecorator: RoomTimelineCellDecorator { get }
|
||||
|
||||
/// Indicate true to make RoomBubbleCellData use vertical spaces for the attributedText
|
||||
var useVerticalWhiteSpaceForText: Bool { get }
|
||||
|
||||
// MARK: - Methods
|
||||
|
||||
/// Indicate to merge or not event in timeline
|
||||
|
||||
Reference in New Issue
Block a user