| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Mattermost api (almost) didn't change between v6.7.x and v7.0
Everything should just work
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* discord: add nosendjoinpart support
This allows the discord bridge to be configured with `nosendjoinpart`,
preventing discord-originating join/part messages from being send to
other bridged platforms.
* discord: Ignore incoming events for other guilds
Ignore all incoming discord events originating from Guild IDs other than
the one we have configured.
This is necessary because discord bots receive events for *all* discord
guilds that they are present in.
Fixes #1612
|
|
|
|
|
|
|
|
| |
* Improve Slack attachments formatting (slack)
* Add TitleLink
* Add Footer
* Fix linter issues
|
|
|
|
|
|
|
|
|
|
|
|
| |
Matrix quotes replies and as of matterbridge 1.24.0 we strip those as this causes
issues with bridges support threading and have PreserveThreading enabled.
Introduced via https://github.com/42wim/matterbridge/commit/9a8ce9b17e560433731eb5efa3cee7ced0b93605
But if you for example use mattermost or discord with webhooks you'll need to enable
this if you want something that looks like a reply from matrix.
See issues:
- https://github.com/42wim/matterbridge/issues/1819
- https://github.com/42wim/matterbridge/issues/1780
|
| |
|
|
|
|
|
|
| |
This reverts commit f044b948e257814e8e1f70d4b66821bfd9c2ff06.
Fixes #1815
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
handleEntities code uses simple modification offset which does not
allow to detect whether the offset is placed before or after
the element in already modified string.
This works fine is most cases as Telegram server always sort the
elements by offset, in ascending order.
However, this is not the case when the modification, for example bold
text, is applied to the URL. In this case, the offset of URL and
bold entity is equal, which raises the issue.
This commit introduces additional hack for this case, stripping
any entities which intersect with URL.
|
| |
|
|
|
|
|
|
|
| |
Clear all existing IRC event handler registrations before registering
new handlers in case we are connecting via a BNC and are seeing
a reconnect.
Fixes #1564
|
| |
|
|
|
|
|
|
|
|
| |
Sorta regression introduced by 9a8ce9b17e560433731eb5efa3cee7ced0b93605
which changes the way we get replies of matrix.
This causes issues like https://github.com/42wim/matterbridge/issues/1780
We "fix" this by mimicking the old behaviour when "PreserveThreading" is
disabled.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Send multiple images/video/documents as media group
* Fix media caption quotting
* Fix errors handling
* Refactor parent id detection
* Try to reduce cognitive complexity of code
* Remove unused conditional
|
|
|
|
|
|
|
| |
* Preserve threading for slack messages with files
* Update bridge/slack/slack.go
Co-authored-by: Wim <wim@42.be>
|
|
|
|
|
| |
* Use slack real name as user name
* Change slack option UseRealName to UseFullName
|
|
|
|
|
|
|
| |
* Preserve threading from telegram replies
* Add fallback for unthreaded telegram message
* Fix linter issue
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Mumble: Implement a workaround to signal Opus support without pulling in the CGO gopus dependency.
* mumble: lowercase error messages
* mumble: Add link to #1750 in bridge/mumble/codec.go
|
|
|
|
|
|
|
|
|
|
|
| |
* Telegram: handle entities before everything
* Telegram: use runes for text entities
* Telegram: use proper offset and runes for links
* Telegram: put newline after backticks for pre
* Telegram: use utf16 for entity processing
|
| |
|
|
|
|
|
| |
* Switch to upstream discordgo again
* Fix discord api changes
|
|
|
|
| |
Forward from channels requires different handling than forward from the regular users.
This patch fixes the issue: it prints channel title instead of "forwarded from unknown".
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Change bridge/telegram/handlers.go
Comment out the removing of empty lines
add support for bold, italic and striked telegram messages
* Implement Telegram MessageEntities correctly
* Apply gofmt
Co-authored-by: Jan Martin Reckel <jan-martin.reckel@s2017.tu-chemnitz.de>
Co-authored-by: Wim <wim@42.be>
|
|
|
|
| |
To keep it backwards compatible we keep the "(edited)" message when no
editsuffix is configured.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
debuglevel=1 dumps every received discord event
debuglevel=2 dumps every discord event we are sending to discord (also
logs sensitive information)
|
|
|
| |
Supports https://libera.chat/guides/certfp.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We create a new event EventFileDelete which will be used to delete
specific uploaded files using the Extra["file"] in the config.Message.
We also add a new NativeID key to the FileInfo struct which will contain
the native file ID of the sending bridge.
When a new file is added to the config.Message.Extra["file"] map, now
the bridge native file ID should be added here.
When the receiving bridge receives such a message, it should keep an
internal mapping of NativeID <> bridge fileid/message id. In the case of
discord we map it to the resulted discord message ID after uploading it.
Now when a bridge deletes a file, it should send a EventFileDelete and
setting the ID to the native file ID of the bridge.
When the receiving bridge will get this event it'll look into the
NativeID <> bridge id mapping to find their internal ID and use it to
delete the specific file on their side.
For now this is implemented for slack to discord but this will be add to
other bridges where useful.
|
|
|
|
|
|
|
|
|
|
| |
* Add support for sender_chat (telegram)
Fixes #1654
https://core.telegram.org/bots/api#december-7-2021
* Add debuglevel option
Add `debuglevel=1` in telegram config to increase debug
|
|
|
|
|
|
|
|
| |
* feat(telegram): command to get chat id
* Gofumpt
Co-authored-by: Ivan Zuev <i-zuev@yandex-team.ru>
Co-authored-by: Wim <wim@42.be>
|
|
|
| |
Co-authored-by: Ivan Zuev <i-zuev@yandex-team.ru>
|
| |
|
| |
|