diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-03-21 20:01:52 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-03-21 20:01:52 +0200 |
commit | b4902d4edb27baf59b21747117d93db4e0e4e96c (patch) | |
tree | 5779f4e1e2aad23e46e1b57a84b1cee2b311ab3c /config | |
parent | efbce4c363b743817b4a368d6011c7aac9b8b176 (diff) |
Clear push rules when clearing cache and listen to push rule updates
Diffstat (limited to 'config')
-rw-r--r-- | config/session.go | 1 |
1 files changed, 1 insertions, 0 deletions
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() |