Commit graph

777 commits

Author SHA1 Message Date
Damir Jelić
0bc297ba94 server: Make the lag reconnect time configurable. 2018-11-01 13:34:55 +01:00
Damir Jelić
b844a26c41 server: Clear the encryption queue if we encounter an olm trust error. 2018-11-01 12:47:58 +01:00
Damir Jelić
ec995e6c8f main: Use the server error method for hook connect errors. 2018-11-01 12:47:18 +01:00
Damir Jelić
64bea928ef bar_items: Add a typing notice bar item. 2018-11-01 11:56:43 +01:00
Damir Jelić
6e27082c1a server: Don't use clear() on a list since it's python3 only. 2018-10-31 09:27:37 +01:00
Damir Jelić
c29db687e4 server: Send out a hsignal when a device change occurs. 2018-10-30 22:58:36 +01:00
Damir Jelić
441acbadc7 server: Print out trust errors in the room buffer. 2018-10-30 21:13:59 +01:00
Damir Jelić
c8e2e66537 server: Update the bar items when a key query completes. 2018-10-30 21:13:35 +01:00
Damir Jelić
74efe8ef9b server: Add a maximum value for the number of nicklist users. 2018-10-30 21:12:41 +01:00
Damir Jelić
d896962b19 matrix: Add option to fetch members only when we switch to the buffer. 2018-10-30 17:20:44 +01:00
Damir Jelić
0710b7f77d buffer: Don't add already added users to the RoomBuffer. 2018-10-30 16:15:57 +01:00
Damir Jelić
3be1b7bfc3 server: Use server side lazy user loading. 2018-10-30 16:15:27 +01:00
Damir Jelić
60282b4eec buffer: Support encrypted attachments.
Note, the printed url should be passed to a helper program that will
download the file and decrypt it.
2018-10-21 19:01:52 +02:00
Damir Jelić
45d83cc1b1 buffer: Post the encryption error message in the current buffer. 2018-10-21 13:36:01 +02:00
Damir Jelić
a46a50fd74 server: Close the socket even if shutdown() raises an exception. 2018-10-19 18:10:04 +02:00
Damir Jelić
fbf56d3491 main: Close the file descriptor we get from hook_connect().
We create a python socket object with fromfd() which duplicates the file
descriptor we get from hook_connect(). Close the unneeded file descriptor
instead of leaking it.
2018-10-19 18:03:08 +02:00
Damir Jelić
53b514809c server: Only hook the lazy hook if it isn't already hooked. 2018-10-15 22:18:15 +02:00
Damir Jelić
ccb263977a commands: Fix buffer clearing. 2018-10-15 22:15:44 +02:00
Damir Jelić
8f1c79e640 main: Catch the CertificateError exception when doing the ssl handshake. 2018-10-15 22:14:43 +02:00
Damir Jelić
0a8e491b00 config: Fix log level and category setting. 2018-10-14 14:16:51 +02:00
Damir Jelić
a97af644cd commands: Use unicode literals. 2018-10-14 14:02:37 +02:00
Damir Jelić
167bf0c07a buffer: Don't mark encryption as unsupported anymore. 2018-10-14 13:13:18 +02:00
Damir Jelić
868a47eca7 commands: Misc olm command fixes. 2018-10-14 12:47:47 +02:00
Damir Jelić
d66621578b buffer: Remove the buffer from the server buffer list if it has been closed. 2018-10-14 11:56:47 +02:00
Damir Jelić
c26e30848f server: Slight change to the formatting of the device list. 2018-10-14 11:56:07 +02:00
Damir Jelić
516be65bd3 server: Do a full key query after an initial sync. 2018-10-14 11:55:48 +02:00
Damir Jelić
a99cc24d66 completion: Don't complete deleted devices in our own devices. 2018-10-14 11:55:02 +02:00
Damir Jelić
f95f33d217 commands: Allow device renaming. 2018-10-14 11:51:03 +02:00
Damir Jelić
b65346d49c server: Add device deletion functionality. 2018-10-14 11:50:07 +02:00
Damir Jelić
35f47547d2 commands: Add initial device manipulation command. 2018-10-14 11:47:11 +02:00
Damir Jelić
4bf0e4be5c server: Mark a finished key query. 2018-10-13 12:14:54 +02:00
Damir Jelić
07d4743db0 commands: Remove duplicate lines. 2018-10-13 12:14:06 +02:00
Damir Jelić
d8362c572b commands: Don't show deleted devices in the olm command. 2018-10-13 12:13:10 +02:00
Damir Jelić
08ad527a1f buffer: Remove uneeded print inside a comment. 2018-10-12 14:07:56 +02:00
Damir Jelić
701085f8ff buffer: Always add users with a higher power level. 2018-10-12 14:07:24 +02:00
Damir Jelić
4ebcfe59a2 buffer: Change the deferred user loading logic.
Now that we get partial sync responses the difference between added
users and total room users won't ever be a large number. Just deffer
user adding based on the number of already added users.
2018-10-12 14:05:32 +02:00
Damir Jelić
a8b62577d7 server: Utilize partial sync responses. 2018-10-12 13:52:48 +02:00
Damir Jelić
7a5c0c9c0e commands: Use the client verify commands instead of the olm ones. 2018-10-02 18:17:34 +02:00
Damir Jelić
c1754123a9 commands: Add the ability to blacklist devices via the olm command. 2018-10-02 18:17:34 +02:00
Damir Jelić
cfae54576a completion: Fix olm user/device completion. 2018-10-02 18:17:34 +02:00
Damir Jelić
1208c9d4a2 commands: Add initial olm command. 2018-10-02 18:17:34 +02:00
Damir Jelić
69db90dd4d server: Don't make multiple key claim and group share requests for a room. 2018-10-02 18:16:36 +02:00
Damir Jelić
583926560a matrix: Add a server buffer callback. 2018-10-02 18:16:09 +02:00
Damir Jelić
5fd5710225 server: Handle exception from group session sharing request. 2018-10-02 16:42:50 +02:00
Damir Jelić
15e4e74c77 commands: Style fixes. 2018-10-02 16:42:44 +02:00
Damir Jelić
821932a326 commands: Remove a double newline from the matrix command. 2018-10-02 16:42:35 +02:00
Damir Jelić
df7069fb21 bar_items: Replicate buffer modes as a separate matrix_modes bar item. 2018-10-01 17:13:17 +02:00
Damir Jelić
a657316278 bar_items: Add a connection state status item. 2018-10-01 17:12:58 +02:00
Damir Jelić
d8e7d84445 server: Add one-time key claiming functionality. 2018-10-01 17:12:36 +02:00
Damir Jelić
4860ffee11 server: Handle group session sharing responses. 2018-10-01 17:11:09 +02:00