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.senderIcon = senderIcon
result.seen = seen result.seen = seen
result.outgoingStatus = outgoingStatus result.outgoingStatus = outgoingStatus
result.messageText = text result.messageText = if ContentType.Image == contentType: "" else: text
result.messageImage = image result.messageImage = image
result.messageContainsMentions = messageContainsMentions result.messageContainsMentions = messageContainsMentions
result.timestamp = timestamp result.timestamp = timestamp

View File

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