Commit graph

67 commits

Author SHA1 Message Date
Damir Jelić
dc8df67f55 commands: Add backlog fetching back. 2018-09-03 20:39:16 +02:00
Damir Jelić
8edbb1bfa9 server: Fix reconnect delay. 2018-09-03 19:20:58 +02:00
Damir Jelić
05a413f7cb matrix: Style fixes and cleanup. 2018-08-29 19:42:44 +02:00
Damir Jelić
19eeec4f3b config: Big config refactor. 2018-08-29 15:35:36 +02:00
Damir Jelić
b05c016fbd server: Use a property factory for the server config. 2018-08-28 17:22:56 +02:00
Damir Jelić
ebcbf454d9 commands: Add join/part. 2018-08-26 20:44:06 +02:00
Damir Jelić
53d2152a21 commands: Add invite support. 2018-08-22 17:13:25 +02:00
Damir Jelić
c3ab43b02e commands: Add back kick support. 2018-08-22 15:54:48 +02:00
Damir Jelić
173e345060 commands: Big command cleanup. 2018-08-07 16:48:18 +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ć
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ć
3785cd0bee matrix: Enable nio logger. 2018-07-21 19:54:36 +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
poljar (Damir Jelić)
38d6a14a33 matrix: Change the way responses and events are executed. 2018-07-05 15:13:19 +02:00
poljar (Damir Jelić)
e7208ded62 matrix: Add weechat buffer abstractions. 2018-07-05 10:07:20 +02:00
poljar (Damir Jelić)
87a8c1a5c0 encryption: Add completion for device verification. 2018-05-17 16:33:58 +02:00
poljar (Damir Jelić)
8a3bda9797 encryption: Stub functions for encrypted messages. 2018-05-09 14:00:32 +02:00
poljar (Damir Jelić)
f8c1f564ae olm: Mark one time keys as published and store the account. 2018-03-26 15:22:23 +02:00
poljar (Damir Jelić)
c52b7866c8 Add olm account loading/creation and a initial olm command. 2018-03-24 20:30:07 +01:00
poljar (Damir Jelić)
c967731c0f events: Make sync event execution batched. 2018-03-19 14:55:48 +01:00
Denis Kasak
b0872922ec Implement /kick. 2018-03-06 09:36:22 +01:00
poljar (Damir Jelić)
d1869cd5d6 server: Store the device id.
The device id now gets saved and reused for logins.
2018-03-01 13:58:33 +01:00
poljar (Damir Jelić)
8e43fe1533 Fix cert digest calculation under python3.
Openssl's digest function takes a byte string on python2 and a unicode
string on python3. Use bytes_to_native_str for this conversion.
2018-02-28 15:53:33 +01:00
poljar (Damir Jelić)
f247daf51d Print out certificate info. 2018-02-28 14:38:02 +01:00
poljar (Damir Jelić)
6822084d59 Add ability to send emote messages using the /me command. 2018-02-26 23:31:53 +01:00
poljar (Damir Jelić)
bf0bffc879 Remove the message type enum. 2018-02-25 18:09:05 +01:00
poljar (Damir Jelić)
efa663133b Move message handling function into the server class. 2018-02-25 18:01:14 +01:00
poljar (Damir Jelić)
f1ddbc841f Add buffer_modes bar item, used for backlog and encryption status. 2018-02-22 15:02:42 +01:00
poljar (Damir Jelić)
2f4137933f Reformat the source tree using yapf. 2018-02-21 17:04:03 +01:00
poljar (Damir Jelić)
afd595b780 Clear the send queue when disconnected as well. 2018-02-15 15:28:01 +01:00
poljar (Damir Jelić)
773085b515 Disconnect if there is a failure in the connect callback. 2018-02-14 11:09:33 +01:00
poljar (Damir Jelić)
390d08b229 Move the sync and login functions into the server class. 2018-02-12 14:53:19 +01:00
poljar (Damir Jelić)
49b356f510 Remove MatrixMessage class. 2018-02-12 14:17:36 +01:00
poljar (Damir Jelić)
b22deceb00 Mypy fixes. 2018-02-12 10:56:28 +01:00
poljar (Damir Jelić)
7ab59ec636 Start separating messages into their own subclasses. 2018-02-12 10:55:27 +01:00
poljar (Damir Jelić)
6b87994a94 Rework of the color handling, add a Formatted class. 2018-02-10 15:34:40 +01:00
poljar (Damir Jelić)
4c9069a8b1 Make the room_id part of the kwargs in the MatrixMessage class. 2018-02-08 15:49:20 +01:00
poljar (Damir Jelić)
39c8591926 Refactor the SEND message type. 2018-02-08 14:19:09 +01:00
poljar (Damir Jelić)
5c2c5a655c Improve lag handling. 2018-02-08 10:58:33 +01:00
poljar (Damir Jelić)
ce718a9259 Style fixes. 2018-02-07 12:42:33 +01:00
poljar (Damir Jelić)
e02a731809 Fix global config handling. 2018-02-05 12:47:40 +01:00