Update API

This commit is contained in:
Isaac
2024-01-14 16:46:26 +04:00
parent 999ae1e827
commit 887e219bd8
21 changed files with 1668 additions and 1669 deletions

View File

@@ -216,7 +216,6 @@ public enum RelativeUserPresenceStatus {
case offline
case online(at: Int32)
case lastSeen(at: Int32)
case hidden
case recently
case lastWeek
case lastMonth
@@ -243,8 +242,6 @@ public func relativeUserPresenceStatus(_ presence: EnginePeer.Presence, relative
return .lastWeek
case .lastMonth:
return .lastMonth
case .hidden:
return .hidden
}
}
@@ -540,9 +537,6 @@ public func stringAndActivityForUserPresence(strings: PresentationStrings, dateT
return (strings.LastSeen_WithinAMonth, false)
case .longTimeAgo:
return (strings.LastSeen_ALongTimeAgo, false)
case .hidden:
//TODO:localize
return ("last seen hidden", false)
}
}
@@ -592,7 +586,7 @@ public func userPresenceStringRefreshTimeout(_ presence: TelegramUserPresence, r
} else {
return Double.infinity
}
case .none, .lastWeek, .lastMonth, .hidden:
case .none, .lastWeek, .lastMonth:
return Double.infinity
}
}