ios: update api for message info, refactor, localize (#2458)

* update api for message info, refactor, localize

* refactor

* change text, layout

* show reactions on deleted revealed items

* update

* trim

* refactor

* corrections

---------

Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
This commit is contained in:
Evgeny Poberezkin
2023-05-19 20:50:48 +04:00
committed by GitHub
co-authored by spaced4ndy
parent a0c4726af3
commit 9e33ba46af
9 changed files with 131 additions and 109 deletions
+2 -2
View File
@@ -295,8 +295,8 @@ func loadChat(chat: Chat, search: String = "") {
}
}
func apiGetChatItemInfo(itemId: Int64) async throws -> ChatItemInfo {
let r = await chatSendCmd(.apiGetChatItemInfo(itemId: itemId))
func apiGetChatItemInfo(type: ChatType, id: Int64, itemId: Int64) async throws -> ChatItemInfo {
let r = await chatSendCmd(.apiGetChatItemInfo(type: type, id: id, itemId: itemId))
if case let .chatItemInfo(_, _, chatItemInfo) = r { return chatItemInfo }
throw r
}