aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-21 20:01:52 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-21 20:01:52 +0200
commitb4902d4edb27baf59b21747117d93db4e0e4e96c (patch)
tree5779f4e1e2aad23e46e1b57a84b1cee2b311ab3c /config
parentefbce4c363b743817b4a368d6011c7aac9b8b176 (diff)
Clear push rules when clearing cache and listen to push rule updates
Diffstat (limited to 'config')
-rw-r--r--config/session.go1
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()