From ef326eae8295b6f59e7c483146e3473556da7ed4 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 25 Mar 2018 20:30:34 +0300 Subject: Try to receive tags --- matrix/sync.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'matrix/sync.go') 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"] -- cgit v1.2.3