From 87b394abecc54b136487d0086c3e62dac6a2acf2 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 20 Mar 2020 14:32:29 +0200 Subject: Support formatting in rainbows Fixes #119 --- 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 81c0596..8ec22b5 100644 --- a/matrix/sync.go +++ b/matrix/sync.go @@ -153,6 +153,9 @@ func (s *GomuksSyncer) ProcessResponse(res *mautrix.RespSync, since string) (err func (s *GomuksSyncer) processSyncEvents(room *rooms.Room, events []json.RawMessage, source EventSource) { for _, event := range events { + if source == EventSourcePresence { + debug.Print(string(event)) + } s.processSyncEvent(room, event, source) } } @@ -241,7 +244,7 @@ func (s *GomuksSyncer) GetFilterJSON(userID string) json.RawMessage { "m.room.power_levels", "m.room.tombstone", }, - Limit: 50, +// Limit: 50, }, Ephemeral: mautrix.FilterPart{ Types: []string{"m.typing", "m.receipt"}, -- cgit v1.2.3