link2xt
620e363ce6
refactor(deltachat-rpc-client): use itertools for thread-safe request ID generation
2023-11-08 17:06:25 +00:00
link2xt
0c2276775d
test: test that joining a group verifies Alice and vice versa
2023-11-08 01:56:45 +00:00
link2xt
cc80590488
test(deltachat-rpc-client): move securejoin tests to a separate file
2023-11-07 18:21:44 +00:00
link2xt
48416289ac
api: add dc_contact_is_profile_verified()
2023-11-07 18:14:33 +00:00
link2xt
836f65376c
fix(deltachat-rpc-client): add the Lock around request ID
...
Avoid handing out the same request ID twice.
2023-11-06 20:00:17 +00:00
link2xt
973ffa1a64
fix: allow to change verified key via "member added" message
...
"Member added" message likely happens because
the contact adding a new member has another
chat with the contact
2023-11-03 17:51:11 +00:00
link2xt
2efd0461d1
Revert "fix: add secondary verified key"
...
This reverts commit 5efb100f12 .
2023-11-01 13:55:39 +00:00
link2xt
045d919cdc
refactor(deltachat-rpc-client): factor out resetup_account()
2023-10-31 23:08:57 +00:00
link2xt
9e1a2149fa
test: test recovery of verified group via gossip
2023-10-31 23:08:57 +00:00
link2xt
22b6d8c17b
feat(deltachat-rpc-client): add Account.wait_for_incoming_msg_event()
2023-10-31 23:08:57 +00:00
link2xt
6aae0276da
test: use instant accounts instead of mailadm
2023-10-30 00:15:22 +00:00
Simon Laux
542bd4cbb8
api!: jsonrpc misc_set_draft now requires setting the viewtype
2023-10-28 08:42:14 +00:00
link2xt
771b57778e
test: increase pytest timeout to 10 minutes
...
deltachat-rpc-client tests often timeouts on CI,
this hopefully fixes the problem unless the tests actually deadlock.
2023-10-28 00:54:36 +00:00
link2xt
9be56a5e56
test(deltachat-rpc-client): test securejoin
2023-10-27 20:07:32 +00:00
link2xt
da744958c2
chore: move pytest option from pyproject.toml to tox.ini and set log level
...
The option from pyproject.toml was not picked up
because tox.ini has higher precedence.
2023-10-27 20:00:20 +00:00
link2xt
2f5c6b5e16
test(jsonrpc): test get_provider_info
2023-10-27 03:07:47 +00:00
link2xt
54410dbe49
Merge tag 'v1.126.0'
2023-10-22 15:16:11 +00:00
adbenitez
df7c44ae42
fix: wrong type hint
2023-10-17 17:18:25 +02:00
link2xt
2775fd1fcf
Merge tag 'v1.125.0'
...
Release 1.125.0
2023-10-14 04:24:08 +00:00
link2xt
3917c6b2f0
test(deltachat-rpc-client): enable logs in pytest
...
This makes pytest setup a logger for `logging` module.
2023-10-10 19:20:42 +00:00
link2xt
129de9182f
chore(deltachat-rpc-client): remove AsyncIO classifier
2023-10-08 01:38:52 +00:00
link2xt
37383c10ac
Merge 'stable' into 'master'
...
Resolved conflicts due to asyncio removal.
2023-10-08 01:30:46 +00:00
link2xt
09798df7a0
refactor(deltachat-rpc-client): remove print() calls
2023-10-07 23:50:38 +00:00
link2xt
f984a27379
fix: use process_group Popen argument with Python 3.11
2023-10-06 19:40:26 +00:00
link2xt
425a2310fe
refactor(deltachat-rpc-client): close stdin instead of sending SIGTERM
2023-10-06 18:44:19 +00:00
link2xt
95571be278
fix: run deltachat-rpc-server in its own process group
...
This ensures the server does not get SIGINT
when the bot is running in a terminal and user presses ^C
We want to send SIGTERM ourselves after clean shutdown,
e.g. stopping I/O for all accounts.
2023-10-06 18:30:59 +00:00
link2xt
7bf44a237e
api(deltachat-rpc-client)!: replace asyncio with threads
2023-10-05 15:59:57 +00:00
link2xt
275791595c
Merge tag 'v1.124.0'
2023-10-04 21:14:17 +00:00
link2xt
a154347834
fix(deltachat-rpc-client): increase stdio buffer to 64 MiB
...
Otherwise readline() gets stuck when JSON-RPC response
is longer that 64 KiB.
2023-10-04 16:08:15 +00:00
link2xt
d51adf2aa0
feat(deltachat-rpc-client): log exceptions when long-running tasks die
...
For example, reader_loop() may die
if readline() tries to read too large line
and thows an exception.
We want to at least log the exception in this case.
2023-10-04 08:22:50 +00:00
Hocuri
ae939e79da
Merge remote-tracking branch 'origin/stable'
2023-09-04 19:19:50 +02:00
adbenitez
a270db1d87
remove aiodns optional dependency from required dependencies
2023-09-03 00:32:08 +00:00
iequidoo
bc8023644c
Merge commit '7c7cd9cc8084f0e425b1919b84d5e79ed150d16b~' into HEAD
...
Merge `stable` up to the mentioned commit.
2023-09-01 13:14:44 -03:00
link2xt
03d3e0578f
refactor(deltachat-rpc-client): drop support for keyword arguments
...
All Rust methods have positional arguments and it is not going to change.
2023-08-31 00:46:04 +00:00
iequidoo
8f2313bb2a
test: test_openrpc_command_line: Check that deltachat-rpc-server exists with 0
2023-08-23 19:30:14 +00:00
link2xt
e12044e6af
api!(deltachat-jsonrpc): use kind as a tag for all union types
2023-08-03 23:46:24 +00:00
link2xt
13e766bc37
feat(deltachat-rpc-server): add --openrpc option
2023-08-01 18:27:02 +00:00
link2xt
c34edc582e
test: test that get_system_info() works over RPC backup import
2023-08-01 01:05:06 +00:00
link2xt
d52f2883cf
feat(deltachat-rpc-client): add MSG_DELETED constant
2023-07-24 18:40:32 +00:00
link2xt
b872953bc5
fix(deltachat-jsonrpc): make MessageObject.text non-optional
...
This is already non-optional on the `deltachat` crate side
since <https://github.com/deltachat/deltachat-core-rust/pull/4517 >
2023-07-24 18:36:56 +00:00
link2xt
82c0058129
test: add basic import/export test for async python
2023-07-17 17:07:13 +00:00
link2xt
1bd307a26a
api(deltachat-rpc-client): add Account.{import,export}_backup methods
2023-07-17 17:07:13 +00:00
link2xt
4891849e28
chore: add LICENSE file to deltachat-rpc-client
...
This gets packaged into the wheel when you run `python -m build`.
2023-07-03 23:01:46 +00:00
link2xt
9cbf413064
chore(deltachat-rpc-client): add Trove classifiers
2023-07-03 21:22:10 +00:00
link2xt
70efd0f10a
refactor: use with statement with multiple contexts
...
Otherwise `ruff` check SIM117 fails.
2023-06-21 00:30:48 +00:00
Asiel Díaz Benítez
5c3df7e452
jsonrpc: use camel-case for Event struct and move events.rs to types folder ( #4372 )
...
* use camel-case for Event struct and move events.rs to types folder
---------
Co-authored-by: link2xt <link2xt@testrun.org >
2023-05-08 06:49:19 -04:00
link2xt
6af631e8df
Add JSON-RPC API to get reactions
2023-05-05 20:49:55 +00:00
link2xt
158541f05c
Document deltachat_rpc_client installation
2023-04-29 13:53:57 +00:00
Simon Laux
ea8ee4e67d
jsonrpc: Remove message id from chatlist item ( #3071 )
...
Why? because desktop currently fetches the chatlist multiple times, even though it just needs the
chatlistitem for one chat.
Note: @r10s was worried before that exposing the method to get a single updated chatlistitem could
lead to race conditions where the chatlist item is newer than the chatlist order. But I don't think
this will change anything for desktop besides making it a little faster (because currently desktop
fetches the whole chatlist instead of just the entry it needs when an entry updates).
2023-04-25 17:20:26 -04:00
link2xt
514074de8b
JSON-RPC: retrieve events via long polling
...
This way is more compatible to JSON-RPC libraries
that do not support receiving notifications from the server
and allows describing event types in the OpenRPC specification.
Event thread converting events to notifications in the FFI
is removed, so it is now possible to construct a dc_jsonrpc_instance_t
while still retrieving events via dc_event_emitter_t.
2023-04-22 16:42:59 +00:00