fix(group): fix editing group image on Windows

Fixes #9884
This commit is contained in:
Jonathan Rainville 2023-03-23 11:16:57 -04:00
parent 9d0e14b680
commit 27d7b822e3
1 changed files with 3 additions and 1 deletions

View File

@ -642,7 +642,9 @@ QtObject:
proc updateGroupChatDetails*(self: Service, communityID: string, chatID: string, name: string, color: string, imageJson: string) =
try:
let response = status_chat.editChat(communityID, chatID, name, color, imageJson)
var parsedImage = imageJson.parseJson
parsedImage["imagePath"] = %singletonInstance.utils.formatImagePath(parsedImage["imagePath"].getStr)
let response = status_chat.editChat(communityID, chatID, name, color, $parsedImage)
if (not response.error.isNil):
let msg = response.error.message & " chatId=" & chatId
error "error while editing group chat details", msg