fix: add trailing space if deletion link included in image upload response (#5269)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -543,7 +543,7 @@ MessageBuilder::MessageBuilder(ImageUploaderResultTag /*unused*/,
|
||||
// This also ensures that the LinkResolver doesn't get these links.
|
||||
addText(imageLink, MessageColor::Link)
|
||||
->setLink({Link::Url, imageLink})
|
||||
->setTrailingSpace(false);
|
||||
->setTrailingSpace(!deletionLink.isEmpty());
|
||||
|
||||
if (!deletionLink.isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user