aboutsummaryrefslogtreecommitdiff
path: root/matrix/sync.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-06-16 15:18:25 +0300
committerTulir Asokan <tulir@maunium.net>2019-06-16 15:18:25 +0300
commit8b87809ac1cae1263d3591a1b9b5b88c944034d8 (patch)
tree25c6421dc5da1b96d2d7804eccad94ed8a2ee1a1 /matrix/sync.go
parentd3c18788dda5c2205a858c99afc75acc46c7ed33 (diff)
parent1ea6ba026aab8b9d3e66681c97043b5806ef4971 (diff)
Merge branch 'break-things-again'
Diffstat (limited to 'matrix/sync.go')
-rw-r--r--matrix/sync.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/matrix/sync.go b/matrix/sync.go
index 7f9c902..ab0e9f8 100644
--- a/matrix/sync.go
+++ b/matrix/sync.go
@@ -107,8 +107,6 @@ func NewGomuksSyncer(session SyncerSession) *GomuksSyncer {
// ProcessResponse processes a Matrix sync response.
func (s *GomuksSyncer) ProcessResponse(res *mautrix.RespSync, since string) (err error) {
debug.Print("Received sync response")
-// dat, _ := json.MarshalIndent(res, "", " ")
-// debug.Print(string(dat))
s.processSyncEvents(nil, res.Presence.Events, EventSourcePresence)
s.processSyncEvents(nil, res.AccountData.Events, EventSourceAccountData)
@@ -215,6 +213,10 @@ func (s *GomuksSyncer) GetFilterJSON(userID string) json.RawMessage {
Timeline: mautrix.FilterPart{
Types: []string{
"m.room.message",
+ "m.room.encrypted",
+ "m.sticker",
+ "m.reaction",
+
"m.room.member",
"m.room.name",
"m.room.topic",