mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
reactively determine with a timer if the lls timeline item has expired or not.
Move mockToday410/420/430 to private Date extension in LiveLocationRoomTimelineView Agent-Logs-Url: https://github.com/element-hq/element-x-ios/sessions/d2136882-1acc-455d-a363-815e0fb73e89 Co-authored-by: Velin92 <34335419+Velin92@users.noreply.github.com> fix
This commit is contained in:
@@ -79,12 +79,6 @@ extension Date {
|
||||
formatted(date: .omitted, time: .shortened)
|
||||
}
|
||||
|
||||
/// A fixed date representing today at 4:20 AM, used for mocks and previews.
|
||||
static var mockToday420: Date {
|
||||
// swiftlint:disable:next force_unwrap
|
||||
Calendar.current.date(bySettingHour: 4, minute: 20, second: 0, of: .now)!
|
||||
}
|
||||
|
||||
/// A fixed date used for mocks, previews etc.
|
||||
static var mock: Date {
|
||||
DateComponents(calendar: .current, year: 2007, month: 1, day: 9, hour: 9, minute: 41).date ?? .now
|
||||
|
||||
Reference in New Issue
Block a user