diff --git a/src/app_service/service/chat/service.nim b/src/app_service/service/chat/service.nim index 3d7baa7b3c..e078e87043 100644 --- a/src/app_service/service/chat/service.nim +++ b/src/app_service/service/chat/service.nim @@ -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