Commit graph

33 commits

Author SHA1 Message Date
Tulir Asokan
13f251fe60 crypto/helper: don't block on decryption
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-10-05 12:30:54 +03:00
Tulir Asokan
96b07ad724 event: use full event type for stripped state for MSC4311 2025-07-18 23:59:28 +03:00
Tulir Asokan
52c8a2e1de sync: add support for MSC4222 2025-03-09 21:04:50 +02:00
Sumner Evans
4b4599d4ab
filter: make sub-structs properly nullable so omitempty works
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-12-19 12:56:15 -07:00
Tulir Asokan
308e3583b0 Add contexts to event handlers 2024-01-13 18:56:12 +02:00
Tulir Asokan
5fae50102f Don't drop unknown events in default syncer 2023-12-03 00:16:22 +02:00
Tulir Asokan
e06eb7269c Fix bug in EventSource stringifier 2023-05-20 22:10:23 +03:00
Tulir Asokan
3579300bf9 Rename to MoveInviteState 2023-05-20 20:58:36 +03:00
Tulir Asokan
2b0b46eb8b Improve unknown EventSource naming 2023-05-20 20:54:27 +03:00
Tulir Asokan
727dc40d52 Add sync handler to move invite state inside the invite event 2023-05-20 20:49:25 +03:00
Tulir Asokan
a3cca07e2a Move old event ignorer to Client 2023-05-20 20:49:10 +03:00
Tulir Asokan
768d618d1a Allow providing custom filter in DefaultSyncer 2023-02-24 21:04:02 +02:00
Tulir Asokan
a7f1f1e3b6 Add simplified crypto helper for clients
Fixes #19
Fixes #2
2023-02-19 03:22:14 +02:00
Tulir Asokan
2d4c48cbcd Make default syncer stop on M_UNKNOWN_TOKEN errors 2023-02-19 03:22:14 +02:00
Tulir Asokan
1110f8fc61 Dispatch to-device events when handling sync response 2022-08-15 17:14:38 +03:00
Tulir Asokan
a45738638b Make sure DefaultSyncer implements ExtensibleSyncer 2020-06-09 22:09:23 +03:00
Tulir Asokan
0d03400c6e Make parsing event content in DefaultSyncer optional 2020-06-09 22:08:39 +03:00
Tulir Asokan
02ef888866 Update DefaultSyncer
The default syncer will now
* correctly set the RoomID in events
* ensure that the event type class matches the event source
* parse the event content, with customizable handling if parsing fails

It will no longer automatically
* update room state in the store
* filter away initial syncs or events from before the user joined the room

To restore update state behavior, you can register an OnEvent handler:

    syncer.OnEvent(store.UpdateState)

To restore old the event filtering behavior, you can use OldEventIgnorer:

    mautrix.OldEventIgnorer{UserID: "@user:example.com"}.Register(syncer)
2020-06-09 22:06:05 +03:00
Tulir Asokan
3aa055cb96 Random fixes for mautrix-appservice-go 2020-05-08 20:26:19 +03:00
Tulir Asokan
f4fc99cddb Overhaul event content representation 2020-04-19 03:23:27 +03:00
Tulir Asokan
941515e73d Rename events to event 2020-04-16 17:29:47 +03:00
Tulir Asokan
8adcd0da97 Reorganize and break everything 2020-04-16 16:51:32 +03:00
Tulir Asokan
9638cb6d80 Separate unmarshaling sync response and event content 2020-02-19 01:23:10 +02:00
Tulir Asokan
8154c462e1 Rename package 2018-10-08 01:22:27 +03:00
Tulir Asokan
9d0f0ed308 Add request logging and fix content/eventtype things 2018-08-16 19:18:54 +03:00
Tulir Asokan
b491397f18 Add pointers to RespSync 2018-05-15 16:22:41 +03:00
Richard Lewis
c7bec461cd Check that StateKey is not nil / null 2017-04-20 21:29:44 +01:00
Richard Lewis
06ec893403 Check that event is a state event. 2017-04-20 14:41:29 +01:00
Richard Lewis
7e21d59dca Handle leave events 2017-04-20 00:19:23 +01:00
Kegan Dougal
03fda4b5d7 Remove Rooms from Syncer, move to Storer 2016-12-01 11:49:36 +00:00
Kegan Dougal
70aad48fbf Remove NextBatchStorer/FilterStorer. Replace with Storer 2016-12-01 11:33:12 +00:00
Kegan Dougal
ca6f598808 Move remaining Go-NEB code into gomatrix 2016-11-30 17:24:46 +00:00
Kegan Dougal
97f4e98e1d Start fleshing out basic Client types from Go-NEB 2016-11-29 17:03:42 +00:00