diff options
author | Wim <wim@42.be> | 2020-12-31 16:59:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 16:59:47 +0100 |
commit | 19d47784bde7f5d8cfc06f868350ed6ac69c8a21 (patch) | |
tree | 74aba773ce82e7db12182c3554d62e9602b84f95 /gateway | |
parent | b89102c5fcb96c5c40ca3d2ed673b6deefe92e64 (diff) | |
download | matterbridge-msglm-19d47784bde7f5d8cfc06f868350ed6ac69c8a21.tar.gz matterbridge-msglm-19d47784bde7f5d8cfc06f868350ed6ac69c8a21.tar.bz2 matterbridge-msglm-19d47784bde7f5d8cfc06f868350ed6ac69c8a21.zip |
Add threading support with token (discord) (#1342)
Webhooks don't support the threading yet, so this is token only.
In discord you can reply on each message of a thread, but this is not possible in mattermost (so some changes added there to make sure we always answer on the rootID of the thread).
Also needs some more testing with slack.
update : It now also uses the token when replying to a thread (even if webhooks are enabled), until webhooks have support for threads.
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/router.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/router.go b/gateway/router.go index b07e5781..468f02c8 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -160,7 +160,7 @@ func (r *Router) handleReceive() { // For some bridges we always add/update the message ID. // This is necessary as msgIDs will change if a bridge returns // a different ID in response to edits. - if !exists || msg.Protocol == "discord" { + if !exists { gw.Messages.Add(msg.Protocol+" "+msg.ID, msgIDs) } } |