Skip to content

Conversation

@ubq323
Copy link

@ubq323 ubq323 commented Aug 16, 2024

briefly:

  • discord attachments are kept in Extra["file"]
  • xmpp attachments will properly display inline in most clients
  • irc will not drop message body when sending an attachment

please see the full commit messages for more detail.

ubq323 added 4 commits August 16, 2024 08:59
previously, the urls were just appended to the message content.

i couldn't find any other assignments directly to Extra["file"]
anywhere in the codebase, so maybe there's a better way to do this.
many clients will only display files inline if the message body
itself exactly matches the attachment URL.

see https://docs.modernxmpp.org/client/protocol/#communicating-the-url
previously, the code assumed each file had a Data, and crashed if this was not present.
now, we detect this condition, and send the URL instead.

the discord client will display URLs in a message of their own
as inline embeds, without any special behavior needed on our part.

this commit makes the same changes to the webhook and non-webhook code.
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit ce93d90 and detected 0 issues on this pull request.

View more on Code Climate.

@antonizoon
Copy link

Im thinking of merging this to my fork.

https://github.com/bibanon/matterbridge/

Has your commits still been working for you today?

@SuperSandro2000
Copy link
Contributor

SuperSandro2000 commented Jun 9, 2025

re the xmmp commit: for Conversation and Dino it works, I had initially the directory permissions for the media server wrong

@ubq323
Copy link
Author

ubq323 commented Nov 2, 2025

Has your commits still been working for you today?

hi! yes, i'm still using these in my own private fork today. do you know if there's a maintained fork of matterbridge nowadays? i could find both bibanon/matterbridge and matterbridge-org/matterbridge

42wim and others added 2 commits November 2, 2025 12:42
* Update dependencies

* Fix whatsmeow API changes
This prevents UnrealIRCd from sending message history unprompted
when joining a channel, which can otherwise lead to messages getting
bridged multiple times.

See: https://www.unrealircd.org/docs/FAQ#History_mode_.28.2BH.29_causes_my_bot_to_re-trigger_previous_commands_-_What_do_I_do.3F
@poVoq
Copy link

poVoq commented Dec 4, 2025

Please consider submitting some of these improvements as individual PRs to matterbridge-org/matterbridge which is the best maintained fork right now.

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.

5 participants