Commit graph

737 commits

Author SHA1 Message Date
evan
3ed0a04098 instructions for autoconnect/autoload 2020-05-23 17:20:00 -05:00
Damir Jelić
bd1583e2b7 Merge branch 'brew-libolm' 2020-05-23 11:30:26 +02:00
Joram Schrijver
efd4786996 server: fix typo in config callback error return 2020-05-23 00:51:59 +02:00
Aaron Raimist
d6e214a729
Add instructions for installing libolm from Homebrew
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2020-05-16 12:59:50 -05: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 #86
* 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
Imran Iqbal
da23da659b
ci(travis): clear Build config validation items & general refresh
* https://travis-ci.org/github/poljar/weechat-matrix/builds/685282618/config

```
Build config validation

root: deprecated key sudo (The key `sudo` has no effect anymore.)
root: missing os, using the default linux
```
2020-05-10 17:15:47 +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
Adrijaned
d415841662
Added clarification on instalation of helper scripts
It might be easy to miss that you can't have them installed with the suffix, and then causes errors alike #83
2020-04-07 11:11:45 +02:00
Damir Jelić
950d912c82 main: Bump the version in the script as well. 2020-04-04 14:50:34 +02:00
Damir Jelić
834c11e295 pyproject.toml: Set the Python version to 3.6 and up. 2020-03-31 19:06:23 +02:00
Damir Jelić
6cde9166bd pyproject.toml: Set the package format to sdist for the contrib scripts. 2020-03-31 19:05:58 +02:00
Jonas Witschel
18defb8301 pyproject.toml: make python-magic, aiohttp and requests optional
These dependencies are only required for the contrib scripts, so they
don't need to be installed for the main WeeChat script.
2020-03-30 22:46:14 +02:00
Jonas Witschel
ef59293515 pyproject.toml: fix invalid Python version restriction
Using environment markers in the version is not allowed
(https://github.com/python-poetry/poetry/issues/21).
2020-03-30 22:45:20 +02:00
Damir Jelić
2a24096505 requirements: Fix the nio requirement. 2020-03-29 13:23:12 +02:00
Damir Jelić
5ba5948eee pytproject.toml: Bump the version and switch back to the latest nio. 2020-03-29 13:13:14 +02:00
Damir Jelić
65a5db7291 travis: Remove Python 2 from the tests. 2020-03-29 12:45:25 +02:00
Damir Jelić
7f285d250e pytroject.toml: Add the e2e feature of nio as a requirement. 2020-03-29 12:44:44 +02:00
Johannes Visintini
61ccf1ca8d
matrix-nio == 0.6
If nio 0.9 is installed, the build fails for python 2.7. Unfortunately you're not able to change the used python version in weechat. This change should stay until all stable systems are using python3 as default.
2020-03-23 00:52:19 +01:00
Damir Jelić
847994139b pyptoject.toml: Remove the non-working scripts definition. 2020-03-20 22:25:32 +01:00
Damir Jelić
e80dee57e8 weechat-matrix: Add a poetry file so we can create a release tarball. 2020-03-20 22:06:49 +01:00
Tulir Asokan
21eba25633
Specify what "new enough" debian/ubuntu means 2020-02-24 01:54:36 +02:00
Dimitrios Semitsoglou-Tsiapos
f1bbed552a
readme: upload/download clarifications/formatting 2020-02-16 17:13:28 +01:00
Dimitrios Semitsoglou-Tsiapos
1b6dd33faa
readme: download instructions 2020-02-16 15:22:55 +01:00
poljar
46640df3e0
Merge pull request #152 from MRAAGH/placeholder-room-name
Fix the room name if nio gives us None.
2020-01-21 21:38:56 +01:00
Maze
a5bed102e5 placeholder is now "Empty room (?)" 2020-01-21 21:36:31 +01:00
Maze
959a2fc77d placeholder room name 2020-01-21 21:08:45 +01:00
Maze
64611b66e7 fix matrix_upload description 2020-01-19 13:09:06 +01:00
Spencer Krum
73ada3e3b9 Upgrade Dockerfile to python3
This fixes #124

This moves to installing dependencies from pip instead of system
packages, it moves the base docker image forward a release, and sets
weechat to run as a user instead of root.
2020-01-12 14:13:57 -06:00
Damir Jelić
c1b8fe97c3 buffer: Unknown events nowadays have a source. 2019-12-04 22:44:49 +01:00
Marco Sirabella
6d58ff0695
Get the tests passing 2019-11-22 18:44:07 -05:00
Marco Sirabella
d3f37d059c
Transition to buffer.number setter 2019-11-22 18:35:20 -05:00
Marco Sirabella
a6b955f4c7
Implement NEAR_SERVER for new_channel_position 2019-11-22 18:33:04 -05:00
Marco Sirabella
56aa9992a9
Implement none and next functionality for new_channel_position 2019-11-19 20:59:57 -05:00
Marco Sirabella
56e6781abe
Add new_channel_position option (with no functionality) 2019-11-19 20:53:05 -05:00
Joel Lehtonen
1fe0215e44 Some Telegram bridges use "_telegram" prefix instead of plain "telegram" 2019-11-11 14:40:18 +02:00
Julius Michaelis
69ad2a9c03 Add options for controlling reconnect delay growth 2019-11-10 23:35:44 +09:00
Rex Roni
a1abfdc3d6 Restore mypy support.
Fix errors with `make typecheck` and fix some typos.
2019-11-03 17:02:48 -07:00
Rex Roni
368f5cfc3b Fix bug when requeueing messages for encryption.
This probably fixes #79.
2019-11-03 16:59:44 -07:00
Damir Jelić
4a3f5217bc requirements: Add requests and python-magic. 2019-10-20 14:03:06 +02:00
Damir Jelić
a9d6864f3a uploads: Fix a typo. 2019-10-20 13:31:52 +02:00
Damir Jelić
b26dc838ef README: Document how to use the sso hsignal. 2019-09-22 12:26:55 +02:00
Damir Jelić
da46c06c01 weechat-matrix: Send out a hsignal when we launch the SSO helper. 2019-09-22 12:25:20 +02:00
Damir Jelić
c34158b553 README: Explain how to do SSO logins using ssh forwarding. 2019-09-17 20:37:18 +02:00