fix(@desktop/chat): update chat after image is sent

Fixes: #4404
This commit is contained in:
Patryk Osmaczko 2022-01-17 13:40:19 +01:00 committed by Sale Djenic
parent 068fe41258
commit ed8f2d35ce
1 changed files with 3 additions and 1 deletions

View File

@ -224,10 +224,12 @@ QtObject:
var image = singletonInstance.utils.formatImagePath(imagePath)
imagePath = image_resizer(image, 2000, TMPDIR)
discard status_chat.sendImages(chatId, images)
let response = status_chat.sendImages(chatId, images)
for imagePath in images.items:
removeFile(imagePath)
discard self.processMessageUpdateAfterSend(response)
except Exception as e:
error "Error sending images", msg = e.msg
result = fmt"Error sending images: {e.msg}"