link2xt
2a605b93cd
test: add test for get_http_response JSON-RPC call
2024-07-21 23:04:53 +00:00
iequidoo
e4d65b2f3b
fix: Call send_sync_msg() only from the SMTP loop ( #5780 )
...
`Context::send_sync_msg()` mustn't be called from multiple tasks in parallel to avoid sending the
same sync items twice because sync items are removed from the db only after successful
sending. Let's guarantee this by calling `send_sync_msg()` only from the SMTP loop. Before
`send_sync_msg()` could be called in parallel from the SMTP loop and another task doing
e.g. `chat::sync()` which led to `test_multidevice_sync_chat` being flaky because of events
triggered by duplicated sync messages.
2024-07-21 12:10:06 -03:00
link2xt
7cfab9a931
test: set configuration after configure() finishes
...
This allows to overwrite settings changed
when XCHATMAIL capability is detected.
2024-05-15 06:27:57 +00:00
link2xt
d17d89ea8f
fix: mark contact request messages as seen on IMAP
2024-04-21 02:17:52 +00:00
link2xt
0aea7d1e02
fix: do not create ad-hoc groups from partial downloads
2024-04-12 01:19:16 +00:00
link2xt
08cbc54c00
fix: assign messages to chats based on not fully downloaded references
2024-04-12 01:19:16 +00:00
link2xt
2be28f1311
test: move reaction tests to JSON-RPC
2024-04-08 19:11:16 +00:00
link2xt
3bcdd1770a
test: test that read receipts don't degrade encryption
...
This is broken since 44227d7b86
mimeparser only recognizes read receipts
by the Content-Type being "multipart/report".
If multipart/report is hidden inside multipart/mixed
and the message is not encrypted,
it degrades encryption.
2024-01-05 15:34:48 +00:00
link2xt
2e69210825
refactor: use wait_for_incoming_msg_event() more
2024-01-05 15:34:48 +00:00
link2xt
57f4958fc6
test(deltachat-rpc-client): test Account.{import,export}_self_keys
2023-12-11 06:43:10 +00:00
link2xt
57ecf49eb1
chore: fix typo ("Bot" instead of "Bob")
2023-12-11 04:08: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
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
9be56a5e56
test(deltachat-rpc-client): test securejoin
2023-10-27 20:07:32 +00:00
link2xt
2f5c6b5e16
test(jsonrpc): test get_provider_info
2023-10-27 03:07:47 +00:00
link2xt
37383c10ac
Merge 'stable' into 'master'
...
Resolved conflicts due to asyncio removal.
2023-10-08 01:30:46 +00:00
link2xt
7bf44a237e
api(deltachat-rpc-client)!: replace asyncio with threads
2023-10-05 15:59:57 +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
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
6af631e8df
Add JSON-RPC API to get reactions
2023-05-05 20:49:55 +00:00
link2xt
fa87d2e225
New APIs for message processing loops
...
This patch adds new C APIs
dc_get_next_msgs() and dc_wait_next_msgs(),
and their JSON-RPC counterparts
get_next_msgs() and wait_next_msgs().
New configuration "last_msg_id"
tracks the last message ID processed by the bot.
get_next_msgs() returns message IDs above
the "last_msg_id".
wait_next_msgs() waits for new message notification
and calls get_next_msgs().
wait_next_msgs() can be used to build
a separate message processing loop
independent of the event loop.
Async Python API get_fresh_messages_in_arrival_order()
is deprecated in favor of get_next_messages().
Introduced Python APIs:
- Account.wait_next_incoming_message()
- Message.is_from_self()
- Message.is_from_device()
Introduced Rust APIs:
- Context.set_config_u32()
- Context.get_config_u32()
2023-04-15 21:27:45 +00:00
link2xt
28a13e98a6
Add JSON-RPC API can_send()
2023-04-14 21:09:32 +00:00
link2xt
05a274a5f3
Enable more ruff checks in deltachat-rpc-client
2023-02-21 11:17:10 +00:00
link2xt
78577594d0
deltachat-rpc-server: spawn request handlers
2023-02-15 12:19:03 +00:00
link2xt
6c8368fa23
jsonrpc: add API to check if the message is sent by a bot
...
Co-Authored-By: Asiel Díaz Benítez <asieldbenitez@gmail.com >
2023-02-12 18:53:26 +00:00
link2xt
cd293e6f49
Update async-smtp to 0.8
2023-02-03 11:36:58 +00:00
link2xt
fac7b064b4
Refine Python CI
...
Add lint environment to `deltachat-rpc-client/`
and set line length to 120, same as in `python/`.
Switch from flake8 to ruff.
Fix ruff warnings.
2023-01-20 16:53:21 +00:00
link2xt
5b3596987b
Test that STARTTLS connection works
2023-01-02 22:11:09 +00:00
adbenitez
4b15f960e1
make get_contact_by_id non-async
2022-12-26 18:26:14 -05:00
link2xt
9734552da5
deltachat_rpc_client: make get_{chat,message}_by_id non-async
2022-12-26 22:24:45 +00:00
adbenitez
adf754ad32
add more high-level event filters
2022-12-21 13:26:59 -05:00
adbenitez
2ebd3f54e6
add Client.run_until()
2022-12-21 13:26:59 -05:00
adbenitez
be63e18ebf
improve hook filters
2022-12-21 13:26:58 -05:00
adbenitez
c1bbd6e766
fix tests
2022-12-10 13:44:21 -05:00
adbenitez
c49743d38c
add more tests
2022-12-09 12:52:01 -05:00
adbenitez
a9afc1e6ba
add more high-level methods and event hooking
2022-12-09 12:52:01 -05:00
adbenitez
29a4404257
enably type-checking in tests
2022-12-01 20:33:05 -05:00
adbenitez
ffbfeab977
add pytest plugin
2022-12-01 03:09:23 -05:00
link2xt
9b04a04568
Add async python client for Delta Chat core JSON-RPC
2022-11-30 20:21:59 +00:00