From ed8f2d35cee62c6e8ef6574b2a3e236b0529159c Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Mon, 17 Jan 2022 13:40:19 +0100 Subject: [PATCH] fix(@desktop/chat): update chat after image is sent Fixes: #4404 --- src/app_service/service/chat/service.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app_service/service/chat/service.nim b/src/app_service/service/chat/service.nim index aa531e1960..b4302e6eaf 100644 --- a/src/app_service/service/chat/service.nim +++ b/src/app_service/service/chat/service.nim @@ -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}"