mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add location's description in timeline (#1236)
* Refactor location URLs * Add description in LocationRoomTimelineView * Amend preview text * Cleanup code
This commit is contained in:
@@ -30,6 +30,16 @@ enum TimelineStyle: String, CaseIterable, Codable {
|
||||
return EdgeInsets(top: 1, leading: 8, bottom: 1, trailing: 8)
|
||||
}
|
||||
}
|
||||
|
||||
/// Short hand for `self == .bubbles`
|
||||
var isBubbles: Bool {
|
||||
switch self {
|
||||
case .plain:
|
||||
return false
|
||||
case .bubbles:
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum TimelineGroupStyle: Hashable {
|
||||
|
||||
Reference in New Issue
Block a user