fix(backend): Add some text to image message

Closes: #6094
This commit is contained in:
Boris Melnik 2022-06-23 14:33:13 +03:00
parent 813cddfb1f
commit 6adb809ba0
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ proc initItem*(
result.senderIcon = senderIcon
result.seen = seen
result.outgoingStatus = outgoingStatus
result.messageText = text
result.messageText = if ContentType.Image == contentType: "" else: text
result.messageImage = image
result.messageContainsMentions = messageContainsMentions
result.timestamp = timestamp

View File

@ -87,7 +87,7 @@ proc sendImages*(chatId: string, images: var seq[string]): RpcResponse[JsonNode]
"imagePath": image,
# TODO is this still needed
# "ensName": preferredUsername,
"text": ""
"text": "Please upgrade your status version to view images"
}
)
callPrivateRPC("sendChatMessages".prefix, %* [imagesJson])