Review: Removed last vestigate of nosync.

This commit is contained in:
Patrick Connolly
2018-11-20 22:38:53 +08:00
parent 31e2edf089
commit 5d5dc47d25

View File

@@ -273,8 +273,8 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
if !gw.Bridges[dest.Account].GetBool("ShowTopicChange") { if !gw.Bridges[dest.Account].GetBool("ShowTopicChange") {
return brMsgIDs return brMsgIDs
} }
// don't relay topic/purpose update if sync is enabled, but msg marked as nosync // don't relay topic/purpose update if sync is enabled
if gw.Bridges[dest.Account].GetBool("SyncTopic") && strings.HasSuffix(msg.Text, "[nosync]") { if gw.Bridges[dest.Account].GetBool("SyncTopic") {
return brMsgIDs return brMsgIDs
} }
} }