poljar (Damir Jelić)
7be29e2b3f
Add join/part message class.
2018-02-12 14:14:53 +01:00
poljar (Damir Jelić)
dbf7df2e84
Add backlog message class.
2018-02-12 13:22:48 +01:00
poljar (Damir Jelić)
aa625f0962
Add redaction message class.
2018-02-12 13:03:32 +01:00
poljar (Damir Jelić)
d0c695dc09
Add topic message class.
2018-02-12 12:51:33 +01:00
poljar (Damir Jelić)
7f9c09c16b
Add sync message class.
2018-02-12 12:27:45 +01:00
poljar (Damir Jelić)
bc6db177a8
Add login message class.
2018-02-12 12:27:20 +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ć)
1ad643f206
Fix buffer unmerging if we only have one server.
2018-02-12 10:41:12 +01:00
poljar (Damir Jelić)
9af4d65b67
Catch the socket error upon socket shutdown.
2018-02-10 15:36:31 +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ć)
1a804a4dc3
Get rid of the data argument from the MatrixMessage constructor.
2018-02-08 14:54:03 +01:00
poljar (Damir Jelić)
ef99a13806
Get rid of extra_data in the MatrixMessage class.
2018-02-08 14:40:20 +01:00
poljar (Damir Jelić)
39c8591926
Refactor the SEND message type.
2018-02-08 14:19:09 +01:00
poljar (Damir Jelić)
f83e02df13
Get rid of the extra_id in the MatrixMessage class.
2018-02-08 13:37:48 +01:00
poljar (Damir Jelić)
51102dd171
No need to check for the event type in the topic message.
2018-02-08 13:07:33 +01:00
poljar (Damir Jelić)
268111fbfc
Final fix for buffer name bar item.
2018-02-08 11:20:41 +01:00
poljar (Damir Jelić)
5c2c5a655c
Improve lag handling.
2018-02-08 10:58:33 +01:00
poljar (Damir Jelić)
e39fa57f83
Fix server buffer merging if no server buffers are created.
2018-02-07 12:43:35 +01:00
poljar (Damir Jelić)
90c63c197c
Split out state messages, for now only topic messages are implemented.
2018-02-07 12:42:56 +01:00
poljar (Damir Jelić)
ce718a9259
Style fixes.
2018-02-07 12:42:33 +01:00
poljar (Damir Jelić)
ad208cbb3a
Refactor of join/leave/invite API.
2018-02-07 12:41:55 +01:00
poljar (Damir Jelić)
9912415453
Refactor of backlog fetch API.
2018-02-06 14:24:52 +01:00
poljar (Damir Jelić)
4514cc43f6
Fix the hdata tags updating code for redactions.
2018-02-06 12:07:43 +01:00
poljar (Damir Jelić)
2813c42c3c
Refactor of the redaction API.
2018-02-06 12:07:17 +01:00
poljar (Damir Jelić)
64df928a4e
Fix room message sending API.
2018-02-06 12:06:57 +01:00
poljar (Damir Jelić)
729b48c077
Refactor of the topic API.
2018-02-05 13:21:01 +01:00
poljar (Damir Jelić)
085ade35ab
Refactor of the message sending API.
2018-02-05 12:50:29 +01:00
poljar (Damir Jelić)
4a949b33a8
Fix name bar item for the server buffer.
...
The server buffer is a pointer to a buffer (that is a string in python)
not a list like the room buffers. Don't use 'in' to check if the buffer
belongs to the server, use 'is' instead.
2018-02-05 12:48:23 +01:00
poljar (Damir Jelić)
e02a731809
Fix global config handling.
2018-02-05 12:47:40 +01:00
poljar (Damir Jelić)
deea9d897e
Full server buffer merging implementation.
2018-02-04 13:34:17 +01:00
poljar (Damir Jelić)
41c96fd332
Catch exceptions while trying to close the socket.
2018-02-03 12:51:13 +01:00
poljar (Damir Jelić)
475feaa93a
Start some refactoring work on the api.
...
Only login and sync are so far done.
2018-02-02 15:03:52 +01:00
poljar (Damir Jelić)
ebd12e6b3e
Clarify why we need to mark the socket as non blocking.
2018-02-02 11:11:04 +01:00
poljar (Damir Jelić)
b9fd3869f4
Move the socket closing function into the server class.
2018-02-02 10:37:06 +01:00
poljar (Damir Jelić)
e7f229e4a2
Mark some server methods as private.
2018-02-02 10:36:54 +01:00
poljar (Damir Jelić)
f9df032667
Move the connection functions to the server class.
2018-02-02 10:29:59 +01:00
poljar (Damir Jelić)
c63551d37e
Make the send functions methods of the server class.
2018-02-02 10:29:16 +01:00
poljar (Damir Jelić)
007b2b5cad
Only try to close the socket if it exists.
2018-02-02 09:51:04 +01:00
poljar (Damir Jelić)
02c79e6adb
Better error message for a room input while being disconnected.
2018-02-02 09:50:35 +01:00
poljar (Damir Jelić)
f4c8f1ee29
Better error messages for socket errors.
2018-02-02 09:50:08 +01:00
poljar (Damir Jelić)
e9c027f131
Fix the ssl_verify config option description.
2018-02-01 19:15:55 +01:00
poljar (Damir Jelić)
b32baa65b1
Fix some style issues.
2018-02-01 18:02:58 +01:00
poljar (Damir Jelić)
a7531839d1
Fix the send callback using a undefined variable.
2018-02-01 15:02:50 +01:00
poljar (Damir Jelić)
57cc1b3e88
Rename disconnect calls in the send function.
2018-02-01 14:58:13 +01:00
poljar (Damir Jelić)
6920b463e2
Don't reset the reconnect variables when connected.
...
They are reset when disconnecting, no need to do it here as well.
2018-02-01 13:28:10 +01:00
poljar (Damir Jelić)
59feac395f
Fix reconnection handling and refactor the server commands.
2018-02-01 13:20:52 +01:00
poljar (Damir Jelić)
361ded2ea5
Always login on a connect.
2018-02-01 13:20:27 +01:00
poljar (Damir Jelić)
576096a70e
Fix server command completion.
2018-02-01 13:19:59 +01:00