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:
DatGuy1 2024-03-26 20:51:16 +02:00 committed by GitHub
parent 2750c528af
commit fb6beb4aca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -113,6 +113,7 @@
- Bugfix: Fixed split header tooltips appearing too tall. (#5232) - Bugfix: Fixed split header tooltips appearing too tall. (#5232)
- Bugfix: Fixed past messages not showing in the search popup after adding a channel. (#5248) - Bugfix: Fixed past messages not showing in the search popup after adding a channel. (#5248)
- Bugfix: Detect when OBS is running on MacOS. (#5260) - Bugfix: Detect when OBS is running on MacOS. (#5260)
- Bugfix: Fixed a missing space when the image uploader provided a delete link. (#5269)
- Bugfix: Remove ":" from the message the user is replying to if it's a /me message. (#5263) - Bugfix: Remove ":" from the message the user is replying to if it's a /me message. (#5263)
- Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978) - Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978)
- Dev: Change clang-format from v14 to v16. (#4929) - Dev: Change clang-format from v14 to v16. (#4929)

View file

@ -543,7 +543,7 @@ MessageBuilder::MessageBuilder(ImageUploaderResultTag /*unused*/,
// This also ensures that the LinkResolver doesn't get these links. // This also ensures that the LinkResolver doesn't get these links.
addText(imageLink, MessageColor::Link) addText(imageLink, MessageColor::Link)
->setLink({Link::Url, imageLink}) ->setLink({Link::Url, imageLink})
->setTrailingSpace(false); ->setTrailingSpace(!deletionLink.isEmpty());
if (!deletionLink.isEmpty()) if (!deletionLink.isEmpty())
{ {