aboutsummaryrefslogtreecommitdiff
path: root/matrix/sync.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-25 20:30:34 +0300
committerTulir Asokan <tulir@maunium.net>2018-03-25 20:30:34 +0300
commitef326eae8295b6f59e7c483146e3473556da7ed4 (patch)
tree93086bc2a37581c1563fc243c94fc1546b6f41c1 /matrix/sync.go
parent23bb46b18fa88ec870ba78cb7f08b296257b4ac5 (diff)
Try to receive tags
Diffstat (limited to 'matrix/sync.go')
-rw-r--r--matrix/sync.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/matrix/sync.go b/matrix/sync.go
index 3e1a0c7..0169e8e 100644
--- a/matrix/sync.go
+++ b/matrix/sync.go
@@ -66,6 +66,7 @@ func (s *GomuksSyncer) ProcessResponse(res *gomatrix.RespSync, since string) (er
s.processSyncEvents(room, roomData.State.Events, true, false)
s.processSyncEvents(room, roomData.Timeline.Events, false, false)
s.processSyncEvents(room, roomData.Ephemeral.Events, false, false)
+ s.processSyncEvents(room, roomData.AccountData.Events, false, false)
if len(room.PrevBatch) == 0 {
room.PrevBatch = roomData.Timeline.PrevBatch
@@ -147,7 +148,9 @@ func (s *GomuksSyncer) GetFilterJSON(userID string) json.RawMessage {
"ephemeral": {
"types": ["m.typing"]
},
- "account_data": {"types": []}
+ "account_data": {
+ "types": ["m.tag"]
+ }
},
"account_data": {
"types": ["m.push_rules"]