Commit graph

819 commits

Author SHA1 Message Date
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
Damir Jelić
7ad0893a3f buffer: Make the resending -> ignore devices logic a configurable option. 2019-06-26 23:07:08 +02:00
Damir Jelić
563cf9926c buffer: Allow to ignore devices by sending the same message twice. 2019-06-26 17:53:26 +02:00
Sandro Santilli
448dc08d6a Improve Makefile adding auto-help when called with no args 2019-06-13 12:16:43 +02:00
Damir Jelić
dd6344ad24 We require e2e support for nio.
This fixes #92.
2019-05-28 19:49:35 +02:00
Damir Jelić
bdab5c8c92 README: Really show the domain in the matrix room badge. 2019-05-25 11:49:47 +02:00
Damir Jelić
b350f39c69 README: Show the domain of the matrix room in the badge. 2019-05-25 11:46:52 +02:00
Damir Jelić
89a3fa6e88 travis: Change the libolm location to the new gitlab repo. 2019-05-25 11:43:39 +02:00
Damir Jelić
c16dc70768 Merge branch 'sas' 2019-05-25 11:40:13 +02:00
Damir Jelić
f9ebd61f93 requirements: Depend on the released nio version. 2019-05-25 11:39:03 +02:00
Sandro Santilli
4797cf7eb4 Document libolm required version is 3.1+ 2019-05-22 23:02:21 +02:00
Sandro Santilli
bb44ce83b5 Update instructions about libolm install
Closes #82
2019-05-22 08:29:05 +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
Trygve Aaberge
b136153d34 Use nicklist_visible_count for buffer_nicklist_count bar item
This is the value which is used by default as per
https://github.com/weechat/weechat/blob/v2.4/src/gui/gui-bar-item.c#L1262
2019-05-15 00:48:09 +02:00
Trygve Aaberge
b5cf65dfd2 Set correct color for buffer_nicklist_count bar item 2019-05-15 00:39:40 +02:00
Trygve Aaberge
aef9a2e028 Only use buffer name for buffer_name bar item
The logic that was here is only relevant for the irc plugin, and should
not be included. The default value for the buffers from other plugins
just contains the color and name, as seen at
https://github.com/weechat/weechat/blob/v2.4/src/gui/gui-bar-item.c#L1112-L1141

Fixes a part of #54
2019-05-15 00:39:27 +02:00
Damir Jelić
53f1edf63a server: Highlight room invitation messages. 2019-05-07 22:32:45 +02:00
Damir Jelić
c3b3567e61 server: Show KeyVerificationCancel events. 2019-05-07 22:32:22 +02:00
Damir Jelić
9d6fbe14cd server: Don't try to show a short auth string if the SAS object is canceled. 2019-05-07 22:31:56 +02:00
Damir Jelić
f294ae5e68 commands: Allow key verifications to be cancelled. 2019-05-07 22:23:16 +02:00