matterbridge/bridge
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.
2022-02-05 14:45:54 +01:00
..
api Sent loopback messages to other websockets as well (api) (#1216) 2020-08-27 22:28:03 +02:00
config Add support for deleting files from slack to discord. Fixes #1705 (#1709) 2022-02-05 14:45:54 +01:00
discord Add support for deleting files from slack to discord. Fixes #1705 (#1709) 2022-02-05 14:45:54 +01:00
gitter Fix golint linter issues and enable it in CI (#593) 2018-11-15 20:43:43 +01:00
harmony Add support for Harmony (#1656) 2021-12-18 22:43:29 +01:00
helper Add support for deleting files from slack to discord. Fixes #1705 (#1709) 2022-02-05 14:45:54 +01:00
irc Allow binding to IP on IRC (#1640) 2021-11-29 01:15:51 +01:00
keybase Fix go-keybase-chat-bot api changes 2020-02-08 18:33:05 +01:00
matrix Reply support for Matrix (#1664) 2022-01-09 23:46:59 +01:00
mattermost Add more ignore debug messages (mattermost) (#1678) 2022-01-10 22:58:53 +01:00
msteams Fix panic in msteams. Fixes #1588 (#1622) 2021-10-24 22:17:46 +02:00
mumble Remove newline character in bridge multiline messages (mumble) (#1572) 2021-08-22 23:17:37 +02:00
nctalk Add support for separate display name (nctalk) (#1506) 2021-06-19 21:45:19 +02:00
rocketchat Handle Rocket.Chat attachments (#1395) 2021-02-15 22:34:14 +01:00
slack Add support for deleting files from slack to discord. Fixes #1705 (#1709) 2022-02-05 14:45:54 +01:00
sshchat Fix duplicated messages (sshchat). Fixes #950 (#996) 2020-02-02 22:08:37 +01:00
steam Update dependencies (#886) 2019-09-07 22:46:58 +02:00
telegram Add support for sender_chat (telegram) (#1677) 2022-02-04 16:15:19 +01:00
vk Remove GroupID (vk) (#1668) 2022-01-09 22:50:07 +01:00
whatsapp Make DocumentMessage handler use FileName attribute (whatsapp) (#1488) 2021-05-26 00:06:45 +02:00
xmpp Do not fail on no avatar data (xmpp) #1529 (#1627) 2021-10-30 17:50:37 +02:00
zulip Add better error handling on Zulip (#1589) 2021-10-23 23:46:27 +02:00
bridge.go Add sane RemoteNickFormat default for API (#1157) 2020-06-25 00:25:10 +02:00