Commit graph

545 commits

Author SHA1 Message Date
Damir Jelić
85ee2eec52 server: Handle room send errors. 2019-03-26 18:11:42 +01:00
Damir Jelić
c400404e3d server: Unstuck the group session shared flag.
The group session shared flag could be stuck in a permanent True state
if we try to share a group session comming from a key claim response in
the case that we have unverified devices.
2019-03-26 18:09:54 +01:00
Damir Jelić
c02fa75d4f buffer: Handle bad events better. 2019-03-13 15:25:22 +01:00
Damir Jelić
1b54b67154 buffer: Add more bridged username workarounds. 2019-03-11 16:26:29 +01:00
Damir Jelić
e9e61b04da buffer: Add user name hacks for ircnet and whatsapp users.
This closes #59.
2019-03-08 19:31:12 +01:00
Damir Jelić
75b2b85626 completion: Add a room name completion.
This is meant to be used as another default_template for the global
weechat completion.
2019-03-07 10:06:46 +01:00
Damir Jelić
6ddf63093a config: Improve the help for the humman_buffer_names option. 2019-03-06 17:40:01 +01:00
Damir Jelić
ef51c95a08 buffer: Allow the buffer name to be human readable. 2019-03-06 16:25:21 +01:00
Damir Jelić
01b5d5c1c5 matrix: Allow buffers to be switched by short names.
This patch overrides the /buffer command and modifies it so we can
switch to matrix buffers by their short name.
2019-02-26 16:08:39 +01:00
Damir Jelić
12bf9c85c4 bar_items: Return sane defaults if we're not on our own buffer. 2019-02-22 09:29:42 +01:00
Damir Jelić
01a23e8221 uploads: Add support for encrypted uploads. 2019-02-17 22:45:49 +01:00
Damir Jelić
6a1901c0ac server: Fix encryption queue emptying. 2019-02-12 11:59:53 +01:00
Damir Jelić
e4a2e2df88 server: Mark that we have sent out a key share request after a KeyClaimResponse. 2019-02-12 11:59:19 +01:00
Damir Jelić
71ffee9036 commands: Pass the whole address to the upload helper. 2019-02-04 11:03:50 +01:00
Damir Jelić
c680939005 server: Use the extra_path functionality from nio. 2019-02-04 10:42:03 +01:00
Damir Jelić
b884536e7e server: Don't use the address in the config for connection establishment.
The address in the config can contain subpaths and it doesn't make sense
for a socket to connect to this address. The net location without the
subpath is now contained in server.address.
2019-02-03 22:56:10 +01:00
Damir Jelić
107a7a606e server: Allow a server address with a subpath. 2019-02-03 10:21:59 +01:00
Damir Jelić
54ad615431 commands: Catch an OSErrors for key imports/exports as well. 2019-02-01 21:08:46 +01:00
Damir Jelić
b1d1871d11 commands: Add support for encryption key imports/exports. 2019-02-01 19:56:47 +01:00
Damir Jelić
1f67491325 config: Small config description fixes. 2019-01-31 10:51:51 +01:00
Damir Jelić
24da24304e commands: Realing the redact command help message. 2019-01-29 15:35:42 +01:00
Damir Jelić
3a17c5ae96 server: Handle case of updating the lag if we don't have a client. 2019-01-29 15:16:34 +01:00
Damir Jelić
7a908e79d0 commands: Modify the redact command to use event ids.
This closes #32.
2019-01-29 15:13:58 +01:00
Damir Jelić
67f3b1883a buffer: Fix redactions for multiline messages. 2019-01-28 16:56:32 +01:00
Denis Kasak
6c1abe934b Revert "Fix parsing of unclosed Markdown delimiters."
This reverts commit a8ea6504e9.

It causes problems for colour support and it doesn't really fix the
issue in full generality. The proper fix is to include a real Markdown
parser.
2019-01-27 15:36:42 +01:00
Damir Jelić
db17c6272d colors: Add html bg color support. 2019-01-24 18:26:19 +01:00
Damir Jelić
fa0d870deb server: Only set the lag from the response if it's less than the current lag. 2019-01-24 11:56:08 +01:00
Damir Jelić
92ff15943c server: Turn the connected flag into a property.
This way we update the necessary bar items automatically, when we change
the flag.
2019-01-24 11:54:22 +01:00
Damir Jelić
25f4f43b3f server: Only fetch the joined member list for rooms that are missing members. 2019-01-24 11:09:57 +01:00
Damir Jelić
5228e50e2e server: Use atomic_write for the device id file. 2019-01-23 16:37:26 +01:00
Damir Jelić
f56279b29d Merge branch 'configurable-reconnect-delay' into olm-command 2019-01-23 14:59:09 +01:00
Denis Kasak
fffb43fda0 Make reconnect delay configurable, per server. 2019-01-23 14:57:57 +01:00
Damir Jelić
58705661f8 server: Don't do full key queries anymore. 2019-01-21 16:05:44 +01:00
Damir Jelić
a34d1e68b0 server: Handle case where we receive a sent message first in a sync. 2019-01-21 00:27:04 +01:00
Damir Jelić
f57b1b32c0 completion: Don't use the Olm class directly. 2019-01-19 16:11:28 +01:00
Damir Jelić
5476d8e500 config: Change the import for the encryption logger. 2019-01-19 15:45:51 +01:00
Damir Jelić
c9ddcf7e78 matrix: Room display name calculation method is now a property. 2019-01-19 12:37:05 +01:00
Denis Kasak
8bc83842ee Implement MockConfig object.
To be used from tests that use code that expects `G.CONFIG` to be
defined, e.g.

    G.CONFIG = MockConfig()
2019-01-16 16:37:53 +01:00
Denis Kasak
dbf5b1d6bc Compress consecutive spaces in inline code blocks. 2019-01-16 16:37:53 +01:00
Denis Kasak
d6a415e54a Update copyright notices. 2019-01-16 16:37:53 +01:00
Denis Kasak
b235a890e6 Implement Markdown inline code. 2019-01-16 16:37:53 +01:00
Denis Kasak
ae2f70a723 Reword comment: bold -> emphasis 2019-01-16 16:37:53 +01:00
Damir Jelić
544155632f Merge branch 'pr22' into olm-command 2019-01-15 15:20:49 +01:00
Denis Kasak
a8ea6504e9 Fix parsing of unclosed Markdown delimiters.
Always append the last segment of the message with default attributes.
This prevents unclosed Markdown delimiters from starting Markdown
effects (for instance, `*foobar` won't display "foobar" as
emphasized/italicised).

Markdown parsing is still half-broken as it isn't a proper Markdown
parser, but this improves the situation somewhat.
2019-01-15 14:15:23 +01:00
Damir Jelić
3efd866052 buffer: Limit the number of lines we search when replacing lines. 2019-01-15 13:51:20 +01:00
Damir Jelić
11b960e22c server: Fix device printing if some fields are None. 2019-01-14 17:12:49 +01:00
Damir Jelić
062a736217 Merge branch 'coloring' into olm-command 2019-01-13 13:46:13 +01:00
Denis Kasak
dcc5a3e530 Make displaying preformatted code as blocks configurable. 2019-01-13 13:45:25 +01:00
Denis Kasak
26f7dae990 Make code block margin configurable. 2019-01-13 13:45:25 +01:00
Denis Kasak
a6cf2e1527 Stylize code blocks as actual boxes with margins. 2019-01-13 13:45:25 +01:00