parent
813cddfb1f
commit
6adb809ba0
|
@ -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
|
||||||
|
|
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue