mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-27 03:33:09 +00:00
fixed enum
This commit is contained in:
1 parent
82e6b2eefc
commit
0ee2769e15
1 file changed
+1
-1
+1
-1
@@ -4858,7 +4858,7 @@ class APIResponse(val resp: CR, val remoteHostId: Long?, val corr: String? = nul
|
||||
} else if (type == "apiChat") {
|
||||
val user: UserRef = json.decodeFromJsonElement(resp["user"]!!.jsonObject)
|
||||
val chat = parseChatData(resp["chat"]!!)
|
||||
val section = resp["section"]?.jsonObject?.get("type")?.let {
|
||||
val section = resp["section"]?.let {
|
||||
json.decodeFromJsonElement<ChatLandingSection>(it)
|
||||
} ?: ChatLandingSection.Latest
|
||||
return APIResponse(CR.ApiChat(user, chat, section), remoteHostId, corr)
|
||||
|
||||
Reference in new issue
Block a user