mobile: show version information (#1820)

* mobile: show version information

* export localizations
This commit is contained in:
Evgeny Poberezkin
2023-01-22 18:34:01 +00:00
committed by GitHub
parent 114b76e3f8
commit 4b0046a60b
15 changed files with 269 additions and 29 deletions

View File

@@ -851,6 +851,12 @@ func apiGetGroupLink(_ groupId: Int64) throws -> String? {
}
}
func apiGetVersion() throws -> CoreVersionInfo {
let r = chatSendCmdSync(.showVersion)
if case let .versionInfo(info) = r { return info }
throw r
}
func initializeChat(start: Bool, dbKey: String? = nil) throws {
logger.debug("initializeChat")
let m = ChatModel.shared