diff options
author | Patrick Connolly <patrick.c.connolly@gmail.com> | 2018-11-07 16:14:31 +0800 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-07 09:14:31 +0100 |
commit | a20b7895a9414882934d0160daefd5e6ef888a24 (patch) | |
tree | 0298ccedefe4a283f376f42153dc95318b91dcdd /bridge/config | |
parent | 5666821e7bc02d5b3b5afb21355be911ff32bfbc (diff) | |
download | matterbridge-msglm-a20b7895a9414882934d0160daefd5e6ef888a24.tar.gz matterbridge-msglm-a20b7895a9414882934d0160daefd5e6ef888a24.tar.bz2 matterbridge-msglm-a20b7895a9414882934d0160daefd5e6ef888a24.zip |
Preserve threading between Slack instances (#529)
* Opportunistically preserve Slack threading when parent thread in cache. [#529]
* Removed slack-specific processing from gateway.
* Added docs.
* Add option to enable threading, with default to off.
* Did cleanup on @42wim's comments.
* Update gateway/gateway.go
Co-Authored-By: patcon <patrick.c.connolly@gmail.com>
* Suggestion from @42wim :)
* Suggestions from @42wim.
* More suggestions.
Diffstat (limited to 'bridge/config')
-rw-r--r-- | bridge/config/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index 0e36d960..5ccf6041 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -35,6 +35,7 @@ type Message struct { Event string `json:"event"` Protocol string `json:"protocol"` Gateway string `json:"gateway"` + ParentID string `json:"parent_id"` Timestamp time.Time `json:"timestamp"` ID string `json:"id"` Extra map[string][]interface{} @@ -98,6 +99,7 @@ type Protocol struct { NoTLS bool // mattermost Password string // IRC,mattermost,XMPP,matrix PrefixMessagesWithNick bool // mattemost, slack + PreserveThreading bool // slack Protocol string // all protocols QuoteDisable bool // telegram QuoteFormat string // telegram |