Commit graph

579 commits

Author SHA1 Message Date
Damir Jelić
cea4b7846d server: Reuse the stored device id. 2018-08-08 17:07:29 +02:00
Damir Jelić
20b903ec52 buffer: Change the way buffer names are created.
This mimics how the irc plugin creates buffer names.
2018-08-08 16:27:49 +02:00
Damir Jelić
995d9215df buffer: Add support for notices. 2018-08-08 15:43:00 +02:00
Damir Jelić
8d4415f873 buffer: Handle encrypted rooms in the state dict as well. 2018-08-08 15:05:15 +02:00
Damir Jelić
458f6580fb buffer: Enable support for media messages. 2018-08-08 15:04:19 +02:00
Damir Jelić
f1e87fe9b0 server: Add topic setting. 2018-08-07 19:07:54 +02:00
Damir Jelić
173e345060 commands: Big command cleanup. 2018-08-07 16:48:18 +02:00
Damir Jelić
47b303e975 server: Add sync filters on initial sync and subsequents syncs. 2018-08-07 11:44:30 +02:00
Damir Jelić
4d299b19eb buffer: Unknown messages don't contain a message attribute anymore. 2018-08-07 11:26:45 +02:00
Damir Jelić
99ca1b50ce server: Use a sync timeout only on HTTP2. 2018-08-07 11:26:31 +02:00
Damir Jelić
fb5a889cca main: Break from the receive loop if there was a transport exception. 2018-08-07 11:25:48 +02:00
Damir Jelić
a513b82418 server: Introduce a server config class. 2018-08-03 17:43:34 +02:00
Damir Jelić
5e676f168f buffer: Fix printing of unknown messages. 2018-08-03 15:27:11 +02:00
Damir Jelić
4b4d02b620 buffer: Add the event id to the tags for our own messages. 2018-08-03 15:09:15 +02:00
Damir Jelić
3bd4be2258 buffer: Reenable redaction event handling. 2018-08-03 14:50:23 +02:00
Damir Jelić
2a4ec66742 buffer: Enable handling of unknown events. 2018-08-03 14:06:27 +02:00
Damir Jelić
3b01483cc4 server: Use a timeout for syncs. 2018-08-03 12:25:17 +02:00
Damir Jelić
2e28e03e0c server: Enable lag functionality again. 2018-07-31 17:12:16 +02:00
Damir Jelić
7a8ce17d8a server: Change the way syncs are scheduled. 2018-07-31 12:03:23 +02:00
Damir Jelić
0c8e732ad0 buffer: Fix room join event handling. 2018-07-31 12:03:05 +02:00
Damir Jelić
6cb9be5578 server: Add the ability to send messages. 2018-07-31 12:02:48 +02:00
Damir Jelić
35e6978622 main: Handle socket errors during the SSL handshake. 2018-07-31 11:57:27 +02:00
Damir Jelić
9e6bd0c246 server: Handle http error responses. 2018-07-26 11:33:05 +02:00
Damir Jelić
df61dba644 matrix: Add option to log into a separate debug buffer. 2018-07-24 11:39:05 +02:00
Damir Jelić
32df9230ea server: Handle malformed server responses. 2018-07-24 11:05:29 +02:00
Damir Jelić
4b67dc015b matrix: Make logging configurable. 2018-07-24 11:05:03 +02:00
Damir Jelić
59b034737e buffer: Handle an empty user part of an user id. 2018-07-21 19:55:03 +02:00
Damir Jelić
3785cd0bee matrix: Enable nio logger. 2018-07-21 19:54:36 +02:00
Damir Jelić
5990704c0d buffer: Handle the case where a user left the room in the timeline. 2018-07-21 15:20:10 +02:00
Damir Jelić
7a12f047f7 server: Add http2 support. 2018-07-21 15:20:10 +02:00
Damir Jelić
1ff0818d46 matrix: Switch to the nio http client. 2018-07-21 15:20:10 +02:00
Damir Jelić
fc4c879e0d matrix: Switch to the nio http client. 2018-07-20 19:14:32 +02:00
Damir Jelić
45be743c07 server: Continue nio migration. 2018-07-20 17:51:48 +02:00
Damir Jelić
91eec1ad85 server: Start the nio migration. 2018-07-20 15:53:47 +02:00
Damir Jelić
3993ce830d rooms: Don't use finally to catch generated events. 2018-07-14 10:51:40 +02:00
Damir Jelić
6fc4b0b12c buffer: Expose the error method from the RoomBuffer. 2018-07-14 10:51:15 +02:00
Damir Jelić
9a3dae6aab rooms: Return true on membership changes and encryption change in handle_events. 2018-07-13 16:32:09 +02:00
Damir Jelić
dec12a898e rooms: Return an error event instead of None upon decryption failure. 2018-07-13 16:05:18 +02:00
Damir Jelić
4323931309 encryption: Return a tuple as well if no decryption session is found. 2018-07-13 15:46:21 +02:00
Damir Jelić
7e1fc69cbf encryption: Return a tuple even if group decryption failed. 2018-07-13 15:39:18 +02:00
Damir Jelić
901b18ac06 rooms: Fix BadEvent creation. 2018-07-13 15:31:45 +02:00
Damir Jelić
783f2d59e8 encryption: Fix for API change in the olm bindings. 2018-07-13 14:48:53 +02:00
Damir Jelić
2a8cf83f64 matrix: Remove unused execute() methods. 2018-07-13 14:26:08 +02:00
Damir Jelić
9622ccc9d9 buffer: Add backlog functionality back. 2018-07-13 13:21:51 +02:00
Damir Jelić
c64af4d953 events: Fix encrypted message sending. 2018-07-11 12:58:43 +02:00
poljar (Damir Jelić)
810607dc08 rooms: Add BadEvent class.
This way if one event in a room is not per spec, we don't end up in a
broken state.
2018-07-06 21:34:27 +02:00
poljar (Damir Jelić)
d70e651d3e rooms: Remove membership events, just leave the original one. 2018-07-06 21:12:21 +02:00
poljar (Damir Jelić)
e6485c73bb buffer: Add support for multiple users with the same base name. 2018-07-06 18:39:43 +02:00
poljar (Damir Jelić)
bc1ad45918 buffer: Fix handling of unknown message types. 2018-07-06 18:28:41 +02:00
poljar (Damir Jelić)
eb8a83010d buffer: Handle power level events. 2018-07-06 18:16:13 +02:00