aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-sync.c
Commit message (Collapse)AuthorAgeFilesLines
* e2e: Parse received d2d m.room.encrypted messagesDr. David Alan Gilbert2018-02-251-1/+5
| | | | | | Parse the top level of m.room.encrypted messages. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
* e2e: Route key count from syncDr. David Alan Gilbert2018-02-251-0/+6
| | | | | | | Route the count of remaining one time keys out of the sync result. We need the newer (v2?) API for this. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
* e2e: Reorg sync to parse d2d messagesDr. David Alan Gilbert2018-02-251-11/+52
| | | | | | | | | Parse the device-2-device messages in a sync. We have to get the order right since we need the rooms created before parsing the d2d messages, but we may need to have processed the d2d messages to decrypt events in the room. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
* Responding to PR commentsEion Robb2017-05-281-0/+1
| | | | | * Comment about using state table for ephermal events * Move JSON handling into matrix-api
* Send/receive typing notificationsEion Robb2017-03-121-2/+8
| | | | using the "Group Typing Notifications" plugin
* Update for /sync response changesRichard van der Hoff2015-11-191-24/+12
| | | | | https://github.com/matrix-org/matrix-doc/pull/165 changes the format of the /sync response. Update our code to accept it.
* Handle state events which arrive in the timelineRichard van der Hoff2015-11-191-3/+9
| | | | Post-SPEC-254, we now need to handle state events which arrive in the timeline.
* Hopefully fix bugs where the member list got out of syncRichard van der Hoff2015-11-031-2/+3
| | | | | | | | | | We needed better tracking of what we had told purple was each member's displayname. It was terribly confusing having matrix-roommembers try to track it implicitly, which was causing bugs where we were getting out of sync. Instead, let matrix-roommembers hold opaque data for each member, which matrix-room then uses to keep track of the purple displayname. Then move a bunch of the member-update-handling stuff back into matrix-room.
* Handle incoming room invitesRichard van der Hoff2015-11-021-16/+119
| | | | | Propagate received invites to the UI, and correctly handle accepting/refusing them.
* Fix segfault on homeserver connection dropRichard van der Hoff2015-10-301-2/+3
| | | | | | | If the connection dropped in the middle of us receiving a sync response, we tried to set the next_batch setting on the account to an invalid string (because we failed to initialise the pointer). Fix the segfault that caused, and clean up some of the other error handling in the area at the same time.
* Move the room member table management out to a separate fileRichard van der Hoff2015-10-291-11/+6
| | | | | | | | | Trying to keep the size of matrix-room.c under control, move the membertable management bits out to a separate file. Also do away with the special handling for the first /sync of a room, and instead *always* group together member arrivals/departures until after we've finished handling the state table.
* Set the 'persistent' flag on rooms when added to the buddy listRichard van der Hoff2015-10-291-0/+38
| | | | The 'persistent' behaviour matches the matrix model much better.
* Add an indication of the members of a roomRichard van der Hoff2015-10-271-12/+21
| | | | | | | | An initial implementation for displaying the people in a room. This isn't very nice, and the code is somewhat thrown together as a prototype/proof-of-concept for now. We probably want to refactor matrix-room.c, which is now altogether too unwieldy. It probably also makes sense to try to do some of this stuff on the server.
* Better room names for one-to-one chatsRichard van der Hoff2015-10-261-1/+2
| | | | Give rooms a name according to who's in it, if there is no proper name.
* Refactor the connection codeRichard van der Hoff2015-10-221-38/+6
| | | | | | | Move all matrix-login and bits of matrix-sync into matrix-connection, where it seems to make more sense. Also move MatrixConnectionData into matrix-connection.h
* Rename MatrixAccount to MatrixConnectionDataRichard van der Hoff2015-10-221-8/+8
| | | | | This structure comes and goes with each connection, so rename it to better reflect its lifecycle.
* Stash the next_batch token in the account settingsRichard van der Hoff2015-10-221-2/+7
| | | | | Persist the next_batch, so that we don't get old scrollback each time we open the application.
* Update README and file commentsRichard van der Hoff2015-10-211-2/+2
|
* Local echoRichard van der Hoff2015-10-211-26/+12
| | | | Do local echo of sent messages, and ignore the remote echo.
* Use libhttp_parser for parsing the API responseRichard van der Hoff2015-10-201-4/+2
| | | | Use an external http parser, instead of inventing that wheel ourselves.
* Refactor API callbacksRichard van der Hoff2015-10-201-30/+5
| | | | | Factor out the handling of errors from API calls, to make it easier to add new ones.
* Refactor a load of codeRichard van der Hoff2015-10-191-0/+221
Move things around quite a lot, to make it a bit saner