Commit graph

249 commits

Author SHA1 Message Date
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
f1750d6df3
CI: install omemo and omemo-backend-signal
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-23 11:43:19 +01:00
bb2426a534
Require upstream versions of omemo and omemo-backend-signal
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-23 11:42:30 +01:00
02b6afe10d
Add debug logging, lots
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-18 14:25:26 +01:00
2a9bade333 Rename short variable
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-16 01:06:26 +01:00
28fe0d04c7 Remove unused variable in for loop
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-16 01:06:26 +01:00
9e67d7d887 Use the new receiving_chain_length endpoint
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-16 01:06:26 +01:00
80cdab3ba3 is_encrypted doesn't require the plugin to be instanciated
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-16 01:06:26 +01:00
8e44c07aed Specify local=False parameter to ['xep_0030'].get_info
The API here might have changed? It seems this call was going just fine
until it wasn't. It was returning an empty string. Adding `local=False`
seems to force it to fetch the info remotely and return a proper Iq.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-16 01:06:26 +01:00
29bf6e8650 Update omemo lib to 0.13 and asyncio changes
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-16 01:06:26 +01:00
080a27e7d8
Add 0030 as a direct dependency
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-15 22:50:10 +01:00
272ea80581
CI: Add py3.{9,10}
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-15 01:13:45 +01:00
cd5a09d2f0 Update ChangeLog
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-15 01:06:38 +01:00
aa91f43aa0 Merge branch 'decrypt-heartbeats' into 'main'
Don't fail on decrypting heartbeats

See merge request poezio/slixmpp-omemo!12
2021-12-15 01:03:15 +01:00
e00c646d95
echo_client: Handle decrypt_message's Optional-ness
Also comment about it

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-15 00:56:19 +01:00
05b5705f22
Don't fail on decrypting heartbeats
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-14 17:20:16 +01:00
494899bb3c
Add interface semi-hidden to RatchetForwardingMessage
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-07-18 00:30:07 +02:00
26665d9e6a should_heartbeat: factor out in internal method to avoid reparsing message
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-07-17 20:18:47 +02:00