Commit graph

18 commits

Author SHA1 Message Date
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