aboutsummaryrefslogtreecommitdiffstats
path: root/libmatrix.c
Commit message (Collapse)AuthorAgeFilesLines
* Add an option to get markdown, not HTMLMiklos Vajna2021-06-111-0/+4
| | | | Fixes #116
* connection: Handle no password explicitlyDr. David Alan Gilbert2019-12-281-0/+1
| | | | | | | | | | | By default purple asks for a password if there's none stored, but when we use an access token we'll want to have no password prompt at all. To do this we flag OPT_PROTO_PASSWORD_OPTIONAL and then have to handle the case with no password manually. Mostly cribbed from jabber/auth_cyrus.c Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
* e2e: Add device info actionDr. David Alan Gilbert2018-02-251-1/+10
| | | | | | | Add a purple action (i.e. thing on the accounts->matrix-> menu) to display the device ID and public key. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
* Merge branch 'master' into typing-notifications3Eion Robb2017-05-281-0/+2
|\
| * Fix whitespace and a memleakEion Robb2017-05-281-1/+1
| |
| * Support HTML formatting on sending/receiving messagesEion Robb2017-05-231-0/+2
| |
* | Fix crash when typing in a non-matrix MUCEion Robb2017-03-131-3/+2
| |
* | Send/receive typing notificationsEion Robb2017-03-121-0/+23
|/ | | | using the "Group Typing Notifications" plugin
* Enable room invites when matrix handle is knownDamien Zammit2017-01-051-1/+10
| | | | Signed-off-by: Damien Zammit <damien@zamaudio.com>
* Send inserted imagesDr. David Alan Gilbert2016-09-031-2/+2
| | | | | | | | | | | | | | | | | | Turn on purple's image facility and cause the messages to be sent. There are two tricky parts to this: a) Purple's idea is a message that can include an image anywhere in it; while Matrix's idea is that you have text events and image events but currently no combo events. My (hacky) solution here is to split purple messages into the text and image components. b) Matrix's images are files that need uploading before the event is sent, and the upload process gives a uri back that must be included in the event. That means we have to somehow delay sending the event until we have the file uploaded. I solve that by using the event hook I added in an earlier commit. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
* Allow user to set their online statusEion Robb2016-01-041-2/+2
|
* Update notes/strings about synapse versionsRichard van der Hoff2016-01-021-1/+1
|
* Invert the sense of the 'full_state' flagRichard van der Hoff2015-11-031-2/+3
| | | | | Inverting it allows us to include a warning that it needs a bleeding-edge synapse.
* Remove cruft from libmatrix.cRichard van der Hoff2015-11-031-812/+81
| | | | | Removed all of the stuff that got copied out of dummyprpl and isn't relevant to matrix.
* Implement get_cb_real_nameRichard van der Hoff2015-11-021-1/+19
| | | | | Fixing this means purple is slightly less confused about who the users in our chats are.
* Show correct displayname on our own outgoing messagesRichard van der Hoff2015-11-021-1/+1
| | | | | Make the displayname on our sent messages match that in the member list for the room.
* Reload old messages on first connectionRichard van der Hoff2015-11-021-0/+5
| | | | | The Pidgin UI is crappy for finding old messages, so reload them from the server on startup.
* Mark chats as active when we reconnect.Richard van der Hoff2015-11-021-3/+15
| | | | | After a connection disconnects, and is subsequently reconnected, mark the affected conversations as active.
* Handle incoming room invitesRichard van der Hoff2015-11-021-26/+17
| | | | | Propagate received invites to the UI, and correctly handle accepting/refusing them.
* Implement joining roomsRichard van der Hoff2015-10-301-1/+2
| | | | Double-clicking on a room in the buddy list now joins a room if necessary.
* Update the room state on first messageRichard van der Hoff2015-10-221-2/+8
| | | | | Now that we persist the next_batch identifier, we no longer get all of the state for a room, so we need to explicitly fetch it on initial sync.
* Abort active sync when the account disconnectsRichard van der Hoff2015-10-221-0/+1
| | | | | Apart from seeming like the expected behaviour, this should stop us ending up with segfaults when the sync completes after the connection has gone away.
* Refactor the connection codeRichard van der Hoff2015-10-221-7/+21
| | | | | | | 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
* Add comments for matrixprpl_list_iconRichard van der Hoff2015-10-221-4/+13
| | | | Pull it out of the nullprpl mess, now that we are usign it properly.
* Update README and file commentsRichard van der Hoff2015-10-211-2/+8
|
* Initial implementation of sending messagesRichard van der Hoff2015-10-211-33/+19
| | | | | | Implement an event queue, and send messages through it. We still need to sort out local echo.
* Implement loginRichard van der Hoff2015-10-201-14/+10
| | | | | Username, password, and homeserver are now configurable options, and we use the login api rather than making the user get their own access token.
* Fix the memory handling for roomsRichard van der Hoff2015-10-191-21/+13
| | | | Make sure that we delete the room state structures when they are thrown away.
* Fix double-click on chat in buddy listRichard van der Hoff2015-10-191-49/+62
| | | | | Make sure we are consistent with the identifiers used for chats, so that double-clicking on the name of a chat in the buddy list switches to that chat.
* Display the messages we get on initial syncRichard van der Hoff2015-10-161-44/+0
| | | | | This code needs tidying up, and I need to figure out how to stop the messages appearing in the logs each time we commit, but it's clearly progress.
* Initial attempts at displaying a room in pidginRichard van der Hoff2015-10-161-33/+3
| | | | | | Not quite sure if this is the right approach yet - in particular, purple distinguishes between active 'conversations', as opposed to 'chats' in the buddy list. Which should our chats be?
* Call initialSyncRichard van der Hoff2015-10-151-44/+5
| | | | | | | Our first API call, woohoo. At the moment we just call initialSync and don't do anything with the response. But it's satisfying progress.
* Re-indent libmatrix.cRichard van der Hoff2015-10-141-790/+790
| | | | | whitespace-only change to give our base implentation a sensible indentation style.
* Rename the 'Null' plugin to 'Matrix'Richard van der Hoff2015-10-131-0/+1172
Still doesn't do anything, but at least it has the right name now...