Commit graph

789 commits

Author SHA1 Message Date
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
Damir Jelić
3866858d18 weechat-matrix: Handle errors from the sso helper. 2019-09-17 20:26:26 +02:00
Damir Jelić
355fa95533 server: Add a config option to set the SSO helper listening port. 2019-09-17 19:37:22 +02:00
Damir Jelić
f5f08cba6f main: Fix a typo. 2019-09-11 22:49:57 +02:00
Damir Jelić
ba943ec58f commans: Fix the page up command on an empty buffer. 2019-09-11 21:05:59 +02:00
Damir Jelić
64712a9e74 weechat-matrix: Use unicode literals in the message renderer. 2019-09-11 20:30:58 +02:00
Damir Jelić
6cc6da45ec main: JsonDecodeError isn't available on python2. 2019-09-11 20:28:27 +02:00
Damir Jelić
c69f859da4 requirements: Only require aiohttp on python3. 2019-09-11 19:15:52 +02:00
Damir Jelić
1a846d61ae README: Document the single sign-on setup. 2019-09-11 14:02:00 +02:00
Damir Jelić
e5f6b597af weechat-matrix: Fetch from the backlog if the buffer has < 10 lines at startup. 2019-09-11 13:48:10 +02:00
Damir Jelić
f48a69a6b6 buffer: Check for already printed events while fetching the backlog. 2019-09-11 13:26:59 +02:00
Damir Jelić
5924264139 commands: Change the way the redact command parses it's arguments.
This fixes #104.
2019-09-11 12:24:12 +02:00
Damir Jelić
a58d21710b server: Add a missing return in the case of an already logged in server. 2019-09-11 08:54:47 +02:00
Damir Jelić
674d5e56b5 server: Use a flag to remember if it's our first sync. 2019-09-11 08:54:23 +02:00
Damir Jelić
aec7023e25 buffer: Force member loading if we're printing from the backlog as well. 2019-09-10 23:23:57 +02:00
Damir Jelić
0acd3d7dc9 buffer: Fix the formatting of room encryption events. 2019-09-10 23:04:48 +02:00
Damir Jelić
3e24e0e999 buffer: The redact_line method doesn't take tags as an argument. 2019-09-10 22:42:32 +02:00
Damir Jelić
488fa29232 buffer: Add the ability to print more message types from the backlog. 2019-09-10 22:16:51 +02:00
Damir Jelić
1a54cc467f main: Remove a spurious print. 2019-09-10 22:16:11 +02:00
Damir Jelić
27c81afcb7 buffer: Start to refactor out the message formatting. 2019-09-10 22:12:23 +02:00
Damir Jelić
23509301a3 server: Evaluate all the server string options.
This fixes #115.
2019-09-10 20:36:11 +02:00
Damir Jelić
eee63decb1 weechat-matrix: Store/restore sync tokens. 2019-09-10 18:51:58 +02:00
Damir Jelić
58ef479f8e requirements: Add aiohttp and bump the nio version for SSO to work. 2019-09-10 15:33:35 +02:00
Damir Jelić
3080538549 weechat-matrix: Add support for single sign-on.
This patch adds support for the single sign-on login flow. If no
user/password is set Weechat will do a SSO login attempt.
2019-09-10 15:28:55 +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ć
75133c1d03 Merge branch 'venv' 2019-09-04 18:37:46 +02:00
Damir Jelić
a37ca2f4b7 buffer: Move the room name logic from nio into weechat-matrix. 2019-09-04 18:33:07 +02:00
Matthijs Kooijman
6534ae2b7c README: Document runing from git directly 2019-09-03 14:05:56 +02:00
Matthijs Kooijman
904d656752 README: Document when make install does 2019-09-03 14:05:56 +02:00
Matthijs Kooijman
f79b4bd324 main: Support running from virtualenv
This fixes #105
2019-09-03 14:05:49 +02:00
Matthew Barry
dc97101d47
Use full path instead of basename when reading file for upload
This might address #83.
2019-07-16 12:24:33 -05:00
Damir Jelić
42f0ac0284 requirements: Bump the required nio version again. 2019-07-13 14:16:42 +02:00
Damir Jelić
f1d3bd5890 contrib: Use env for the matrix_upload hashbang.
This allows users to run the matrix_upload script to run inside virtual
environments.

This closes #102.
2019-07-13 12:45:34 +02:00
Damir Jelić
1fd4f80ab6 requirements: Bump the required nio version. 2019-07-13 12:16:58 +02:00
Damir Jelić
8bc4c7114c Merge branch 'dev' 2019-07-12 17:00:47 +02:00
Adam B
dc3d2303da
Remove list of dependencies from README
The list of dependencies in the README was out of sync with the list in requirements.txt since weechat-matrix now requires e2ee support in matrix-nio. Opening requirements.txt and installing dependencies manually is either trivial to those who know python packaging or provides no benefit to those who do not. Removing this list reduces maintenance effort and does not make installation harder to understand.
2019-07-08 11:08:49 -04:00
Damir Jelić
2758ece4a9 tests: Fix server tests. 2019-07-03 21:20:07 +02:00
Damir Jelić
934863e209 buffer: Change the way the domain localvar is set.
Room ids in newer room versions will become opaque strings and won't
contain the domain of the homeserver.

Get the domain from the homeserver url instead.
2019-07-02 18:11:28 +02:00
Damir Jelić
e9214862fe buffer: Pass the homeserver to the mxc -> http api function.
This fixes #57.
2019-07-02 18:10:35 +02:00
Damir Jelić
4c04f6319b buffer: Store the homeserver inside room buffers. 2019-07-02 18:10:12 +02:00
Damir Jelić
4c8ee2848b server: Change the way the homeserver url is passed to nio. 2019-07-02 18:09:36 +02:00
Damir Jelić
e82d7013ec README: Mention the minimal supported python2 version.
This closes #94.
2019-06-27 19:53:59 +02:00
Damir Jelić
f05d2f0a2b server: Enable sending state events to encrypted rooms.
State events are not encrypted so sending them is done as usually.
2019-06-27 17:32:39 +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
Damir Jelić
b2877b0f71 buffer: Clear the buffer last message if we succeed in sending it. 2019-06-27 11:48:01 +02:00