mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
Faster viewID for Status
This commit is contained in:
parent
595e7b253b
commit
195ab4cd65
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ public protocol AnyStatus {
|
|||
extension AnyStatus {
|
||||
public var viewId: String {
|
||||
get {
|
||||
"\(id)\(createdAt.asDate.description)\(editedAt?.asDate.description ?? "")"
|
||||
if let editedAt {
|
||||
return "\(id)\(editedAt.asDate.description)"
|
||||
}
|
||||
return id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue