From b4902d4edb27baf59b21747117d93db4e0e4e96c Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 21 Mar 2018 20:01:52 +0200 Subject: Clear push rules when clearing cache and listen to push rule updates --- config/session.go | 1 + 1 file changed, 1 insertion(+) (limited to 'config') diff --git a/config/session.go b/config/session.go index 2f2ff7c..631c954 100644 --- a/config/session.go +++ b/config/session.go @@ -52,6 +52,7 @@ func (config *Config) NewSession(mxid string) *Session { func (s *Session) Clear() { s.Rooms = make(map[string]*rooms.Room) + s.PushRules = nil s.NextBatch = "" s.FilterID = "" s.Save() -- cgit v1.2.3