Commit graph

105 commits

Author SHA1 Message Date
Damir Jelić
d67821ae50 Merge branch 'bodqhrohro/master' 2021-06-06 21:08:43 +02:00
Bohdan Horbeshko
8461ad80f7 Fix misleading notices in keys import/export commands 2021-06-06 05:21:10 +03:00
Bohdan Horbeshko
f05a55a0af Support quoting for command arguments
I've encountered a problem when trying to use a passphrase with spaces in `/olm import`.
The arguments were just broken by spaces. shlex has more advanced splitting which allows
taking multi-word arguments in quotes.
2021-06-06 05:05:10 +03:00
Tom Smeding
fab8bb37bf Reply to messages with 'r' binding in cursor mode 2020-07-02 17:51:18 +02:00
Tom Smeding
d5636bd186 Require text in reply-matrix 2020-06-02 09:42:28 +02:00
Damir Jelić
427cb9f0be Merge branch 'rudis-master' 2020-05-13 17:07:11 +02:00
Damir Jelić
06d04b5152 Merge branch 'feat/enable-replies' 2020-05-13 17:06:54 +02:00
Simon Ruderich
87d8032070 Fix typos in messages and comments 2020-05-13 08:28:37 +02:00
Imran Iqbal
af7049f2cf
feat(replies): enable based on redaction implementation
* Close 
* https://matrix.org/docs/spec/client_server/latest#rich-replies
* Modify to `/reply-matrix` to avoid clash with `/reply` used by `wee-slack`
2020-05-10 17:47:56 +01:00
Damir Jelić
196e66f74a Merge branch 'pr/olm_missing_category' 2020-05-10 10:19:51 +02:00
Damir Jelić
d750d3ba1f Merge branch 'pr/olm_verification_msg_args' 2020-05-10 10:12:15 +02:00
Qeole
5889d50a0d commands: prevent python crash when typing simply "/olm"
Typing "/olm" on its own is supposed to fall back to the default
subcommand "/olm info private". It does pick up "info", but fails to
find a "category" (in our case: we want "private") because the category
has never been parsed, and has never been assigned to "args". Not only
does the command fail, but it even yields a traceback:

    python : stdout/stderr (matrix) : Traceback (most recent call last):
    python : stdout/stderr (matrix) :   File "/home/qmo/weechat/conf/python/matrix/utf.py", line 89, in wrapper
    python : stdout/stderr (matrix) :     return function(*args, **kwargs)
    python : stdout/stderr (matrix) :   File "/home/qmo/weechat/conf/python/matrix/commands.py", line 891, in matrix_olm_command_cb
    python : stdout/stderr (matrix) :     return command(server, data, buffer, args)
    python : stdout/stderr (matrix) :   File "/home/qmo/weechat/conf/python/matrix/commands.py", line 860, in command
    python : stdout/stderr (matrix) :     olm_info_command(server, parsed_args)
    python : stdout/stderr (matrix) :   File "/home/qmo/weechat/conf/python/matrix/commands.py", line 594, in olm_info_command
    python : stdout/stderr (matrix) :     if args.category == "private":
    python : stdout/stderr (matrix) : AttributeError: 'Namespace' object has no attribute 'category'

Fix it by going for "private" if no category has been assigned.

Fixes: 1208c9d4a2 ("commands: Add initial olm command.")
2020-05-10 01:29:44 +01:00
Qeole
9fcf1af922 commands: fix user/device ids in error messages for "/olm verification"
When passing arguments to format error messages for "/olm verification",
the order of device id and user id has been swapped, leading to
confusing messages. Let's restore the correct order.

Fixes: 9f01a05617 ("commands: Add a command for interactive key verification.")
2020-05-10 01:25:29 +01:00
Imran Iqbal
b74b8e089d
fix(commands.py): fix minor typo diconnected => disconnected 2020-05-09 14:09:28 +01:00
Rex Roni
a1abfdc3d6 Restore mypy support.
Fix errors with `make typecheck` and fix some typos.
2019-11-03 17:02:48 -07:00
Damir Jelić
ba943ec58f commans: Fix the page up command on an empty buffer. 2019-09-11 21:05:59 +02:00
Damir Jelić
5924264139 commands: Change the way the redact command parses it's arguments.
This fixes .
2019-09-11 12:24:12 +02:00
Damir Jelić
eee63decb1 weechat-matrix: Store/restore sync tokens. 2019-09-10 18:51:58 +02:00
Damir Jelić
cc0ccd6dba commands: Allow servers to be added using the full URL. 2019-09-10 15:27:34 +02:00
Damir Jelić
dc34a5bef9 weechat-matrix: Handle the case where our clients gets soft-logged out. 2019-09-10 15:26:54 +02:00
Damir Jelić
2aa70c7ead commands: Fix the server delete command. 2019-09-10 14:57:50 +02:00
Damir Jelić
6836365bc7 commands: Add the ability to print out ignored devices. 2019-06-27 11:58:22 +02:00
Damir Jelić
137102bb09 Merge branch 'kechpaja-master' 2019-06-27 11:58:11 +02:00
Damir Jelić
e9b82a56f5 commands: Add a send-anyways command. 2019-06-27 11:48:28 +02:00
Kelvin Jackson
730c493a3d Added 'ignore' subcommand to /olm command
/olm ignore should now invoke the "ignore" function in the NIO class.
2019-05-18 19:03:53 +03:00
Damir Jelić
fa5dca12de commands: Print out device display names. 2019-05-15 21:50:48 +02:00
Damir Jelić
f294ae5e68 commands: Allow key verifications to be cancelled. 2019-05-07 22:23:16 +02:00
Damir Jelić
88a2de637d commands: Fix an error message. 2019-05-07 22:18:21 +02:00
Damir Jelić
9f01a05617 commands: Add a command for interactive key verification. 2019-05-05 23:23:14 +02:00
Florian Bruhin
5431c8a310
Fix /matrix server delete example 2019-04-16 08:35:57 +02:00
Damir Jelić
01a23e8221 uploads: Add support for encrypted uploads. 2019-02-17 22:45:49 +01:00
Damir Jelić
71ffee9036 commands: Pass the whole address to the upload helper. 2019-02-04 11:03:50 +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ć
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ć
24da24304e commands: Realing the redact command help message. 2019-01-29 15:35:42 +01:00
Damir Jelić
7a908e79d0 commands: Modify the redact command to use event ids.
This closes .
2019-01-29 15:13:58 +01:00
Denis Kasak
d6a415e54a Update copyright notices. 2019-01-16 16:37:53 +01:00
Damir Jelić
4eb1d52d81 matrix: Add initial upload support. 2019-01-13 12:33:25 +01:00
Damir Jelić
9d3b624733 server: Add support for sending out read markers. 2018-12-03 22:28:49 +01:00
Damir Jelić
199e6de2a7 commands: Add initial room command. 2018-11-29 17:10:42 +01:00
Damir Jelić
b8c655b3d4 commands: Update the buffer modes bar items after an olm command run. 2018-11-02 14:04:22 +01:00
Damir Jelić
ccb263977a commands: Fix buffer clearing. 2018-10-15 22:15:44 +02:00
Damir Jelić
a97af644cd commands: Use unicode literals. 2018-10-14 14:02:37 +02:00
Damir Jelić
868a47eca7 commands: Misc olm command fixes. 2018-10-14 12:47:47 +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ć
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