Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit bbe32cf0e116958246e4b829656f7ec57307d9db Author: ldruschk <14059613+ldruschk@users.noreply.github.com> Date: Sat Apr 18 22:05:27 2020 +0000 Fix the behavior of ShowTopicChange and SyncTopic (#1086) Currently, the "topic_change" events are ignored if both, ShowTopicChange and SyncTopic are set, and forwarded otherwise. This pull requests changes the behavior such that the events are only forwarded if one of those two config options is set to true and ignored otherwise. diff --git a/gateway/handlers.go b/gateway/handlers.go index edc2bf4..44cefe4 100644 --- a/gateway/handlers.go +++ b/gateway/handlers.go @@ -1797 +1797 @@ func (gw *Gateway) ignoreEvent(event string, dest *bridge.Bridge) bool {   }   case config.EventTopicChange:   // only relay topic change when used in some way on other side - if dest.GetBool("ShowTopicChange") && dest.GetBool("SyncTopic") { + if !dest.GetBool("ShowTopicChange") && !dest.GetBool("SyncTopic") {   return true   }   }