Clear push rules when clearing cache and listen to push rule updates

This commit is contained in:
Tulir Asokan
2018-03-21 20:01:52 +02:00
parent efbce4c363
commit b4902d4edb
4 changed files with 31 additions and 1 deletions

View File

@ -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()