You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matterbridge/bridge/slack
Wim 6438a3dba3
Add support for deleting files from slack to discord. Fixes #1705 (#1709)
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.
3 years ago
..
handlers.go Add support for deleting files from slack to discord. Fixes #1705 (#1709) 3 years ago
helpers.go Use upstream slack-go/slack again (#1018) 5 years ago
helpers_test.go Make all loggers derive from non-default instance (#728) 6 years ago
legacy.go Use upstream slack-go/slack again (#1018) 5 years ago
slack.go Add support for deleting files from slack to discord. Fixes #1705 (#1709) 3 years ago
users_channels.go Increase batch size for conversation.list api method (slack) (#1700) 3 years ago