Commit graph

266 commits

Author SHA1 Message Date
26fbb7e28c
WIP: Fix non-awaited task
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-05-15 16:05:27 +02:00
c16d3f1cd9
Bump version to 0.9.0
I would have bumped to 0.8.1 only for a deprecation notice fix, but it
seems poezio breaks without this fix for some users..

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-19 21:52:14 +02:00
da3c74bd36
Add Python 3.11 in classifiers
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-19 21:41:58 +02:00
02b3380ac3
Replace ensure_future calls with create_task
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-19 21:40:33 +02:00
fa3e690154
Use asyncio.create_task to fix asyncio.wait deprecation notice
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-19 21:40:03 +02:00
83dd5d62c4
Bump version to 0.8.0
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-23 21:26:59 +02:00
3411d5f673
Update version requirements for OMEMO lib
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-08-23 21:26:06 +02:00
73bc6b7803
my_fingerprint: public_bundle.serialize isn't awaitable
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-07-11 12:15:54 +02:00
4bc8c5e6b6
get_devices and get_active_devices return Iterable[int] now
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-07-11 10:56:54 +02:00
cda11a82bc
Await get_active_device call in fetch_bundles
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-07-11 10:51:09 +02:00
8e9add345a
Expose fetch_devices and fetch_bundles
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-07-10 22:31:25 +02:00
dccb877b41
Release 0.7.0
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-03 20:38:25 +02:00
7324193966
Don't expose fetch_devices and fetch_bundle
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-03 20:36:37 +02:00
882b4d2294 Rename make_heartbeat to send_heartbeat
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 20:16:43 +01:00
c8341e0f83 Make fetch_devices and fetch_bundle public
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 20:16:43 +01:00
3a85411df8 f-strings
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 20:16:43 +01:00
13052817bf Remove get_device_list in favor of get_devices and get_active_devices
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 20:16:43 +01:00
48b0610f89 delete_session: new API
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 20:16:41 +01:00
284f49714e
Update changelog for py.typed
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 20:16:16 +01:00
4bfeb6b002 is_encrypted: now a staticmethod
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 20:07:25 +01:00
f4d2412443
encrypt: pass bundle in to encryptRatchetForwarding if available
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 19:50:44 +01:00
2c4dc24b84
decrypt: ensure_future is no more required
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 19:50:11 +01:00
9947fdbb2e
Add py.typed
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-24 15:56:36 +01:00
f932be5a4f
setup.py: Remove Python 3.{7,8}
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-14 22:49:11 +01:00
61f87c1e10
CI: Remove Python 3.{7,8}
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-14 16:19:15 +01:00
33e4f7c84b
0.6.1 release
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-14 16:18:25 +01:00
3cf3cebcaf
Update version requirements
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-14 16:16:29 +01:00
9c547be9aa
Release version 0.6.0
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:42:32 +01:00
9a5cc71b14
echo_bot: re-add space before echoing unencrypted message
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:38:56 +01:00
b586b62558
README: mention example bot
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:33:28 +01:00
0029d5114b
Update ChangeLog
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:28:26 +01:00
e4c9b54b85
Ensure heartbeats are stored in the archive
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:27:15 +01:00
320105988a
echo_bot: Remove useless returns
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:26:51 +01:00
a495d7d7c8
echo_bot: use f-strings where possible
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:23:43 +01:00
31380cd726
echo_bot: reply as plain if NOT encrypted
important detail. Got lost in translation between rewrites with the
Callback/CoroutineCallback

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:21:28 +01:00
89bc05b0c3 echo_bot: Removed unused module
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:11:55 +01:00
f397b0e8d7 echo_bot: Use CoroutineCallback rather than Callback
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-12 01:11:42 +01:00
dbeaca6b6a
typo in decryptRatchetForwardingMessage method name
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-11 23:43:35 +01:00
ec5fe90bce
echo_bot: Also match on heartbeats
The default slixmpp 'message' handler only matches on messages including
a body, which causes issues with heartbeats as they should be processed
by the OMEMO lib as well.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-11 13:32:30 +01:00
be5df8658b
echo_bot: Remove chain_length command
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-10 14:39:13 +01:00
488c254523
Add logging in _should_heartbeat
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-10 14:23:43 +01:00
a6ce12c0b3
encryptRatchetForwardingMessage: missing device_id param
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-10 13:41:02 +01:00
f00580e268
encrypt*Message: use named parameter for bundles
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-10 13:04:45 +01:00
05e6ff3b8e
encryptRatchetForwarding doesn't have an expect_problems parameter anymore
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-10 13:02:13 +01:00
3e92fc0516
encryptRatchetForwardingMessage: bundle isn't required for our use-cases
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-04 12:34:19 +01:00
6ab8bba4f0
Use new encryptRatchetForwardingMessage API added in f3c3a45e
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-03 20:02:00 +01:00
bf3f5472f7
Rename variable so types don't conflict
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-03 19:58:21 +01:00
a7e969b078
should_heartbeat: Ensure prekey variable is always availabe in scope
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-02 00:32:47 +01:00
3681856d54
Please linter, change import order
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 22:49:24 +01:00
c936703941
Only call should_heartbeat if auto_heartbeat is enabled
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 22:47:12 +01:00