mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
20 lines
359 B
Swift
20 lines
359 B
Swift
//
|
|
// MessageEntityExtension.swift
|
|
// Meshtastic
|
|
//
|
|
// Created by Ben on 8/22/23.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
import CoreData
|
|
import CoreLocation
|
|
import MapKit
|
|
import SwiftUI
|
|
|
|
extension MessageEntity {
|
|
var timestamp: Date {
|
|
let time = messageTimestamp <= 0 ? receivedTimestamp : messageTimestamp
|
|
return Date(timeIntervalSince1970: TimeInterval(time))
|
|
}
|
|
}
|