diff options
author | Patrick Connolly <patrick.c.connolly@gmail.com> | 2018-11-26 17:47:04 +0800 |
---|---|---|
committer | Duco van Amstel <duco.vanamstel@gmail.com> | 2018-11-26 09:47:04 +0000 |
commit | f5659d455d2c28a6f2fe4c40f4dc344419ff523a (patch) | |
tree | 76447e104bfafeea83f3df6cf7f540d7c0bf048c /gateway | |
parent | 5ed7abdbeb8a81599b3516583e15df75651fb9bc (diff) | |
download | matterbridge-msglm-f5659d455d2c28a6f2fe4c40f4dc344419ff523a.tar.gz matterbridge-msglm-f5659d455d2c28a6f2fe4c40f4dc344419ff523a.tar.bz2 matterbridge-msglm-f5659d455d2c28a6f2fe4c40f4dc344419ff523a.zip |
Sync channel topics between Slack bridges (#585)
Added logic to allow for configurable synchronisation of topics and purposes of channels between Slack bridges.
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/gateway.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 72a0f6a6..2b8bdfa9 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -267,8 +267,10 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM return brMsgIDs } - // only relay topic change when configured - if msg.Event == config.EventTopicChange && !gw.Bridges[dest.Account].GetBool("ShowTopicChange") { + // only relay topic change when used in some way on other side + if msg.Event == config.EventTopicChange && + !gw.Bridges[dest.Account].GetBool("ShowTopicChange") && + !gw.Bridges[dest.Account].GetBool("SyncTopic") { return brMsgIDs } |