Faster viewID for Status
This commit is contained in:
parent
595e7b253b
commit
195ab4cd65
|
@ -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 New Issue