diff options
author | Wim <wim@42.be> | 2017-09-11 22:45:15 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-09-11 22:45:15 +0200 |
commit | ed018207226912ee57ecaae06c539aea37e7bb96 (patch) | |
tree | 4426d2bfd3041c9110b9b2e4ad38c35e9e918bff /bridge/steam | |
parent | 90a61f15cc93ddca78f598dc6856c759a91bd96a (diff) | |
download | matterbridge-msglm-ed018207226912ee57ecaae06c539aea37e7bb96.tar.gz matterbridge-msglm-ed018207226912ee57ecaae06c539aea37e7bb96.tar.bz2 matterbridge-msglm-ed018207226912ee57ecaae06c539aea37e7bb96.zip |
Add support for deleting messages across bridges.
Currently fully support mattermost,slack and discord.
Message deleted on the bridge or received from other bridges will be
deleted.
Partially support for Gitter.
Gitter bridge will delete messages received from other bridges.
But if you delete a message on gitter, this deletion will not be sent to
other bridges (this is a gitter API limitation, it doesn't propogate edits
or deletes via the API)
Diffstat (limited to 'bridge/steam')
-rw-r--r-- | bridge/steam/steam.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/steam/steam.go b/bridge/steam/steam.go index 25291ff4..60b2f1bf 100644 --- a/bridge/steam/steam.go +++ b/bridge/steam/steam.go @@ -70,6 +70,10 @@ func (b *Bsteam) JoinChannel(channel config.ChannelInfo) error { } func (b *Bsteam) Send(msg config.Message) (string, error) { + // ignore delete messages + if msg.Event == config.EVENT_MSG_DELETE { + return "", nil + } id, err := steamid.NewId(msg.Channel) if err != nil { return "", err |