Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sending from slack to discord corrupts content of the message #2103

Open
kostyanius opened this issue Nov 20, 2023 · 0 comments
Open

sending from slack to discord corrupts content of the message #2103

kostyanius opened this issue Nov 20, 2023 · 0 comments
Labels

Comments

@kostyanius
Copy link

kostyanius commented Nov 20, 2023

Describe the bug
Hello. Sending from slack to discord channel messages with images and url, interactive buttons corrupts message content. see on the screens.

To Reproduce

  1. add slack bot
  2. add discord bot
  3. add slack-discord default config (matterbridge.toml)
  4. run matterbridge relay
    (docker, or installed via go it does not matter. i have tried both. the final result it the same - discord message is corrupted)

Expected behavior
messages in discord and slack should looks the same

Screenshots/debug logs
[0000] INFO main: Running version 1.26.1-dev 56e7bd0
[0000] INFO main: WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[0000] INFO router: Parsing gateway mygateway
[0000] INFO router: Starting bridge: discord.server
[0000] INFO discord: Connecting
[0000] INFO discord: Connection succeeded
[0001] INFO discord: discord.server: joining aws (ID: awsdiscord.server)
[0001] INFO router: Starting bridge: slack.server
[0001] INFO slack: Connecting using token
[0001] INFO slack: slack.server: joining aws (ID: awsslack.server)
[0001] INFO main: Gateway(s) started successfully. Now relaying messages
[0000] INFO main: Running version 1.26.1-dev 56e7bd0
[0000] INFO main: WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[0000] INFO router: Parsing gateway mygateway
[0000] INFO router: Starting bridge: discord.server
[0000] INFO discord: Connecting
[0000] INFO discord: Connection succeeded
[0001] INFO discord: discord.server: joining aws (ID: awsdiscord.server)
[0001] INFO router: Starting bridge: slack.server
[0001] INFO slack: Connecting using token
[0001] INFO slack: slack.server: joining aws (ID: awsslack.server)
[0002] INFO main: Gateway(s) started successfully. Now relaying messages

That is how it looks in Slack chat:
зображення
That is how it looks in Discord chat:
зображення

If applicable, add screenshots to help explain your problem.
Use logs from running matterbridge -debug if possible.

/ # matterbridge -debug
[0000] INFO main: [setupLogger:matterbridge.go:104] Enabling debug logging.
[0000] INFO main: [main:matterbridge.go:44] Running version 1.26.1-dev 56e7bd0
[0000] INFO main: [main:matterbridge.go:46] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[0000] INFO router: [Start:gateway/router.go:66] Parsing gateway mygateway
[0000] INFO router: [Start:gateway/router.go:75] Starting bridge: discord.server
[0000] INFO discord: [Connect:bridge/discord/discord.go:70] Connecting
[0000] INFO discord: [Connect:bridge/discord/discord.go:83] Connection succeeded
[0001] INFO discord: [joinChannels:bridge/bridge.go:77] discord.server: joining aws (ID: awsdiscord.server)
[0001] INFO router: [Start:gateway/router.go:75] Starting bridge: slack.server
[0001] INFO slack: [Connect:bridge/slack/slack.go:110] Connecting using token
[0001] INFO slack: [joinChannels:bridge/bridge.go:77] slack.server: joining aws (ID: awsslack.server)
[0001] DEBUG slack: [handleSlack:bridge/slack/handlers.go:23] Choosing token based receiving
[0001] DEBUG slack: [handleSlackClient:bridge/slack/handlers.go:53] == Receiving event &slack.ConnectingEvent{Attempt:1, ConnectionCount:0}
[0001] INFO main: [main:matterbridge.go:68] Gateway(s) started successfully. Now relaying messages
[0001] DEBUG slack: [handleSlackClient:bridge/slack/handlers.go:53] == Receiving event &slack.ConnectedEvent{ConnectionCount:0, Info:(*slack.Info)(0xc00053c380)}
[0002] DEBUG slack: [handleSlack:bridge/slack/handlers.go:27] Start listening for Slack messages
[0002] DEBUG slack: [populateUsers:bridge/slack/users_channels.go:160] getting 9 users

Environment (please complete the following information):

  • OS: [e.g. linux]
    Distributor ID: Ubuntu
    Description: Ubuntu 22.04.3 LTS
    Release: 22.04
    Codename: jammy

  • Matterbridge version: output of matterbridge -version
    matterbridge -version
    version: 1.26.1-dev 56e7bd0

  • If self compiled: output of git rev-parse HEAD
    git rev-parse HEAD
    56e7bd0

Additional context
Please add your configuration file (be sure to exclude or anonymize private data (tokens/passwords))

[slack]
[slack.server]
Token="your slack token here"
PrefixMessagesWithNick=true

[discord]
[discord.server]
Token="your discord token here"
Server="your discord server here"

[aws]
RemoteNickFormat="[{PROTOCOL}/{BRIDGE}] <{NICK}> "

[[gateway]]
name = "mygateway"
enable=true

[[gateway.inout]]
account = "discord.server"
channel="aws"

[[gateway.inout]]
account ="slack.server"
channel = "aws"
@kostyanius kostyanius added the bug label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant