Skip to content

matrix: Message body does not get dropped when there are attachments#185

Merged
poVoq merged 1 commit into
matterbridge-org:masterfrom
selfhoster1312:feat-matrix-announce-upload-text
Mar 23, 2026
Merged

matrix: Message body does not get dropped when there are attachments#185
poVoq merged 1 commit into
matterbridge-org:masterfrom
selfhoster1312:feat-matrix-announce-upload-text

Conversation

@selfhoster1312
Copy link
Copy Markdown
Collaborator

This should fix #182 but please don't merge too quickly before testing.

Two things are happening here:

  • in handleUploadFiles we check whether there was an actual message body and send it
  • moved the simple text message sending logic to a dedicated method sendNormalMessage to avoid too much code repetition and to better segment the logic between HTML/plaintext

@SwirlyStone5877
Copy link
Copy Markdown

I've been testing this PR since it was made, and it seems to function just fine to me.

@poVoq poVoq merged commit fad710f into matterbridge-org:master Mar 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If text is sent with image, the text is not shown (Discord -> Matrix)

3 participants