From 5d5dc47d256e491e0f78b931f1eb75eaac1ce0c0 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Tue, 20 Nov 2018 22:38:53 +0800 Subject: [PATCH] Review: Removed last vestigate of nosync. --- gateway/gateway.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/gateway.go b/gateway/gateway.go index 4d7108a3..273bfe4e 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -273,8 +273,8 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM if !gw.Bridges[dest.Account].GetBool("ShowTopicChange") { return brMsgIDs } - // don't relay topic/purpose update if sync is enabled, but msg marked as nosync - if gw.Bridges[dest.Account].GetBool("SyncTopic") && strings.HasSuffix(msg.Text, "[nosync]") { + // don't relay topic/purpose update if sync is enabled + if gw.Bridges[dest.Account].GetBool("SyncTopic") { return brMsgIDs } }