Matterbridge: Slack leaves empty attachments visible on Android

Created on 19 Sep 2017  路  11Comments  路  Source: 42wim/matterbridge

If you have a configuration problem, please first try to create a basic configuration following the instructions on the wiki before filing an issue.

Please answer the following questions.

Which version of matterbridge are you using?

run matterbridge -version
version: 1.2.1-dev

If you're having problems with mattermost please specify mattermost version.

Please describe the expected behavior.

There should be not empty attachments visible on Android Slack app.

Please describe the actual behavior.

For every text message forwarded to slack, empty attachment is visible on the Android app.
It's probably related to this piece of code

        np.Attachments = append(np.Attachments, slack.Attachment{CallbackID: "matterbridge"})
        np.Attachments = append(np.Attachments, b.createAttach(msg.Extra)...)

But I am not sure if removing it will break detecting "own" messages or something based on the CallbackID in attachment...

Use logs from running matterbridge -debug if possible.

Any steps to reproduce the behavior?

  1. Setup mattermost->slack pipe
  2. Post something on mattermost
  3. Open slack on Android and see empty attachment next to the message

Please add your configuration file

(be sure to exclude or anonymize private data (tokens/passwords))

wontfix

All 11 comments

Also see https://github.com/42wim/matterbridge/issues/262#issuecomment-330369260
Yes, removing it will break detection.

@42wim maybe we can request slack to "fix it" on mobile...after all it's not displayed on the web version, so there is some check that blocks display of empty attachments.

@ninja-: feel free to do that :)

I sent a ticket with details, I'll let you know if they agree to fix it.

Slack acknowledged this as a bug, it will be fixed but there's no date yet

Cool, is there a link somewhere I can refer to?

sadly no but they will message me when the fix goes live, so I'll forward that information here

chrome_2017-09-20_23-05-54

fixed upstream :)

cool! thanks for remembering :)

2017-10-26_22-39-23

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Wouter0100 picture Wouter0100  路  4Comments

jurgenhaas picture jurgenhaas  路  5Comments

patcon picture patcon  路  4Comments

patcon picture patcon  路  8Comments

pb30 picture pb30  路  5Comments