aboutsummaryrefslogtreecommitdiff
path: root/matrix/sync.go
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 /matrix/sync.go
parentefbce4c363b743817b4a368d6011c7aac9b8b176 (diff)
Clear push rules when clearing cache and listen to push rule updates
Diffstat (limited to 'matrix/sync.go')
-rw-r--r--matrix/sync.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/matrix/sync.go b/matrix/sync.go
index ab5d047..9eeb87a 100644
--- a/matrix/sync.go
+++ b/matrix/sync.go
@@ -41,6 +41,9 @@ func (s *GomuksSyncer) ProcessResponse(res *gomatrix.RespSync, since string) (er
for _, event := range res.Presence.Events {
s.notifyListeners(event)
}
+ for _, event := range res.AccountData.Events {
+ s.notifyListeners(event)
+ }
for roomID, roomData := range res.Rooms.Join {
room := s.Session.GetRoom(roomID)
for _, event := range roomData.State.Events {