Skip to content

fix: support message tag for empty message#535

Merged
gbirman merged 1 commit intomainfrom
gab/fix/empty-message-should-still-show-message-tag
Dec 10, 2025
Merged

fix: support message tag for empty message#535
gbirman merged 1 commit intomainfrom
gab/fix/empty-message-should-still-show-message-tag

Conversation

@gbirman
Copy link
Copy Markdown
Contributor

@gbirman gbirman commented Dec 10, 2025

Summary

if the message content was "\n" it would be truthy but if it was "" it would be falsy. however both of these are still messages. @sedson will work on adding some sort of sent attachment text to make it clearer what's going on

Screenshots, GIFs, and Videos

in dev
CleanShot 2025-12-10 at 16 26 06

@gbirman gbirman requested a review from a team as a code owner December 10, 2025 21:27
@gbirman gbirman self-assigned this Dec 10, 2025
!metadata.messageContent
)
return '';
if (!metadata || !('messageContent' in metadata)) return '';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo if message content is there it's still a message since you can send attachments with empty message

@gbirman gbirman merged commit 08fd2ba into main Dec 10, 2025
19 checks passed
@gbirman gbirman deleted the gab/fix/empty-message-should-still-show-message-tag branch December 10, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants