fix(chat): Display mention tag even if there is no mention

fixes #14928
This commit is contained in:
Andrey Bocharnikov 2024-05-29 14:08:42 +04:00
parent 551ae70c46
commit a93455c2d0
1 changed files with 1 additions and 1 deletions

View File

@ -807,7 +807,7 @@ QtObject:
if (responseObj.kind != JObject):
raise newException(CatchableError, "mark all messages read response is not an json object")
if responseObj.contains("error"):
if responseObj.contains("error") and responseObj{"error"}.kind != JNull and responseObj{"error"}.getStr != "":
raise newException(CatchableError, responseObj{"error"}.getStr)
var chatId: string