Commit Graph
94 Commits
Author SHA1 Message Date
Asiel Díaz Benítez 934ca6a7d7 api: add send_draft() to JSON-RPC API (#4839) 2023-10-22 13:14:08 +00:00
Asiel Díaz BenítezandB. Petersen 955f4fbb19 add self-address to backup filename (#4820)
close #4816

---------

Co-authored-by: B. Petersen <r10s@b44t.com>
2023-10-18 12:31:32 -04:00
adbenitez df7c44ae42 fix: wrong type hint 2023-10-17 17:18:25 +02:00
adbenitez a270db1d87 remove aiodns optional dependency from required dependencies 2023-09-03 00:32:08 +00:00
Asiel Díaz Benítezandlink2xt 4a593a8d7e api!:jsonrpc: sort reactions in descending order (#4388)
convert `JSONRPCReactions.reactions` to a `Vec<JSONRPCReaction>` with unique reactions and their count, sorted in descending order.
---------

Co-authored-by: link2xt <link2xt@testrun.org>
2023-05-11 08:29:43 -04:00
Asiel Díaz Benítezandlink2xt 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
adbenitez 6d0327d057 deltachat-rpc-client: fix bug in Chat.send_message() 2023-03-24 18:56:08 -04:00
adbenitez 580ce5a9e9 deltachat-rpc-client: fix bug in Chat.send_message() 2023-03-24 17:34:41 -04:00
Asiel Díaz Benítez b7e939e4d9 Merge pull request #4132 from deltachat/adb/rpc-server-update-readme
update deltachat-rpc-server/README.md
2023-03-12 06:10:56 -04:00
adbenitez 2151a24b7f update deltachat-rpc-server/README.md 2023-03-11 21:28:46 -05:00
Asiel Díaz Benítez 4bb131e7e7 Merge pull request #4128 from deltachat/adb/add-golang-to-readme
add new golang bindings lib to README.md
2023-03-08 03:12:59 -05:00
adbenitez 8b8dcf61ef add new golang bindings lib to README.md 2023-03-04 23:14:45 -05:00
Asiel Díaz Benítez 210ec79872 Merge pull request #4097 from deltachat/adb/add-send-msg
add more advanced API to send a message
2023-02-27 00:32:18 -05:00
adbenitez 9f81299de0 rename DraftMessage to MessageData 2023-02-26 23:34:15 -05:00
adbenitez f0a2ca7815 send_msg(): return only msg_id 2023-02-26 22:50:24 -05:00
Asiel Díaz Benítez ad3c7136ec Merge branch 'master' into adb/add-send-msg 2023-02-26 05:14:12 -05:00
adbenitez 79026f93b6 add more advanced API to send a message 2023-02-26 05:13:20 -05:00
adbenitezandlink2xt a2e088b415 Compile deltachat-rpc-server for Android
Co-Authored-By: link2xt <link2xt@testrun.org>
2023-02-24 15:17:40 +00:00
Asiel Díaz Benítez 48f098482e Merge pull request #4023 from deltachat/adb/issue-2266
capture unexpected exceptions in EventThread
2023-02-11 22:00:02 -05:00
adbenitez 3e8687e464 capture unexpected exceptions in EventThread 2023-02-10 14:43:32 -05:00
Asiel Díaz Benítez c8453e2c81 Merge pull request #4002 from deltachat/adb/rpc-server-add-readme
add deltachat-rpc-server/README.md
2023-01-31 05:39:48 -05:00
adbenitez e6fe814ada add deltachat-rpc-server/README.md 2023-01-31 05:08:59 -05:00
adbenitez cf1d6919bf allow to pass string as update for objects that don't support default json.dump() conversion 2022-12-26 18:34:55 -05:00
adbenitez 4b15f960e1 make get_contact_by_id non-async 2022-12-26 18:26:14 -05:00
Asiel Díaz Benítez bad04f9a0b Merge pull request #3835 from deltachat/adb/rpc-client-better-hooks
improve deltachat-rpc-client lib (part #2)
2022-12-21 14:05:10 -05: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
Asiel Díaz Benítez edb1d2fb9e Merge pull request #3813 from deltachat/adb/rpc-client-improvements
python deltachat-rpc-client improvements
2022-12-10 14:34:23 -05:00
adbenitez 9645101de2 add SystemMessageType and ViewType 2022-12-10 13:44:42 -05:00
adbenitez c1bbd6e766 fix tests 2022-12-10 13:44:21 -05:00
adbenitez 0a4c8a40ba solve review comments 2022-12-09 12:52:01 -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 24db29f526 Merge remote-tracking branch 'upstream/link2xt/async-jsonrpc-client' into adb/async-jsonrpc-client 2022-12-01 20:32:36 -05:00
adbenitez d17ac9c83c add start_rpc_server() doc string 2022-12-01 03:34:43 -05:00
adbenitez e6ff513aac add support for PEP 561 2022-12-01 03:15:25 -05:00
adbenitez ffbfeab977 add pytest plugin 2022-12-01 03:09:23 -05:00
adbenitez 09db062958 fix bug in Rpc.__getattr__() 2022-12-01 02:36:55 -05:00
adbenitez ab7732d9ae fix type hint in rpc.py 2022-12-01 02:26:50 -05:00
adbenitez 46594ec707 improve typing hints 2022-12-01 00:37:45 -05:00
adbenitez 18426561e3 fix bug in chat.get_encryption_info() 2022-12-01 00:14:07 -05:00
adbenitez aeb7e3a9e1 fix some linter warnings 2022-11-30 23:56:50 -05:00
adbenitez a77c46be20 fix bug in account.py: arguments declared as optional but not default value was given 2022-11-30 23:42:08 -05:00
adbenitez a4be2cddf2 remove unused code in rpc.py 2022-11-30 23:11:50 -05:00
adbenitez 240b335181 fix bugs in account.secure_join() and chat.get_fresh_message_count() 2022-11-30 22:36:49 -05:00
Asiel Díaz Benítez e5c255e011 Merge pull request #3492 from deltachat/adb/qr-mailto-draft
Detect draft from QR with mailto data
2022-07-09 22:49:04 -04:00
adbenitez 8c70393c90 fix other tests 2022-07-09 16:35:00 -04:00
adbenitez 37cb16b95c update documentation 2022-07-09 16:23:31 -04:00
adbenitez 50e1866572 update CHANGELOG.md 2022-07-09 15:51:10 -04:00
adbenitez 68a15725d2 fix tests 2022-07-09 15:45:06 -04:00
adbenitez 62a0ce29e9 decode draft 2022-07-09 15:19:39 -04:00
adbenitez 6b9aac5234 detect draft when scanning QR with mailto link as data 2022-07-09 05:42:39 -04:00
Asiel Díaz Benítez e280ca9db8 Merge pull request #3416 from deltachat/adb/add-missing-message-api
add missing Message API
2022-06-10 22:35:41 -04:00
adbenitez a96a4362cd add missing Message API 2022-06-10 07:57:17 -04:00
Asiel Díaz Benítez 1fb6d1b59d Merge pull request #3412 from deltachat/adb/allow-comparing-with-none
avoid exceptions when messages/contacts/chats are compared with None
2022-06-10 03:21:41 -04:00
adbenitez f94d7d9ea5 add tests 2022-06-10 02:30:37 -04:00
Asiel Díaz Benítez 8eb04de748 Merge pull request #3411 from deltachat/adb/tweak-isort-config
move isort configuration to pyproject.toml
2022-06-09 05:08:54 -04:00
adbenitez 521d14a6e0 avoid exceptions when messages/contacts/chats are compared with None 2022-06-09 05:00:02 -04:00
adbenitez e334b781fb move isort configuration to pyproject.toml instead of passing it in command line usage in tox.ini, this allows isort usage with editors to pick the right configuration without manually tweaking it in the editors 2022-06-09 04:24:28 -04:00
Asiel Díaz Benítez 4f02c811a3 update python API (#3394) 2022-06-04 18:12:38 +02:00
Asiel Díaz Benítez 1d568076df Merge pull request #3381 from deltachat/adb/apply-black-and-isort
apply isort and black formatters, add format checking to CI
2022-06-02 08:01:17 -04:00
adbenitez 17aab01eaa apply black with new line-length == 120 2022-05-31 23:05:20 -04:00
adbenitez d3e6cc5acb set black.line-length to 120 2022-05-31 23:02:51 -04:00
adbenitez 723d1828ec configure flake8 to be compatible with black 2022-05-31 05:29:35 -04:00
adbenitez 16e0f0e986 apply isort and black formatters, add format checking to CI 2022-05-29 21:11:49 -04:00
adbenitez f1d09e4127 apply rustfmt 2022-04-09 19:15:48 -04:00
adbenitez e29d008914 send setup-changed messages only in the chats we share with the peer, do not create contact request 2022-04-04 01:05:49 -04:00
adbenitez e6d2b1052c fix typo 2021-04-13 04:23:36 -04:00
adbenitez 19c1e6efc3 try to fix test 2021-04-13 04:11:15 -04:00
adbenitez 26d9addc5d improve test, test has_html() 2021-04-13 04:11:15 -04:00
adbenitez 6601015a09 add test_html_message() 2021-04-13 04:11:15 -04:00
adbenitez 36653928f7 add html API 2021-04-13 04:11:15 -04:00
adbenitez 2e015e685f add aditional check 2021-04-13 03:53:37 -04:00
adbenitez d4a1858d41 try to fix test 2021-04-13 03:53:21 -04:00
adbenitez d6a6ba01e4 fix test 2021-04-13 02:38:42 -04:00
adbenitez 27714f596e add test_message_override_sender_name() 2021-04-13 02:14:53 -04:00
adbenitez f6136f0ecc fix Chat.prepare_message() 2021-04-12 14:59:15 -04:00
adbenitez b2517d3060 make Message.id a property 2021-04-12 14:59:15 -04:00
adbenitez dc6fb7d481 add "override_sender_name" API 2021-04-11 21:18:46 -04:00
adbenitez d1237c9f8d add Message.is_sticker() 2021-04-11 20:37:47 -04:00
adbenitez b9beaee7d4 update Message.new_empty() to allow view_type="sticker" and also allow using
message type directly (ex. `const.DC_MSG_STICKER`) so if new message types are
added, they can be used direcly without needing the python API to be updated.
2021-04-11 20:37:47 -04:00
adbenitez 258856c23a add sticker type 2021-04-11 20:37:47 -04:00
adbenitez 72ddd33adf avoid for loop 2021-04-11 20:37:47 -04:00
adbenitez 1ce1a01d49 improve docstring 2020-10-23 21:10:12 +02:00
adbenitez 1cd3ee6a05 add failing test 2020-10-23 21:10:12 +02:00
adbenitez 1cacfb30ff avoid usage of deprecated contact.set_blocked() 2020-10-23 08:25:46 +02:00
Asiel Díaz Benítez a128e7e7ab Update CHANGELOG.md 2020-05-14 03:22:45 -04:00
Asiel Díaz Benítez 531928bf0b Update proxy.py 2020-02-17 14:43:43 +01:00
Asiel Díaz Benítez 490c8e055b Create proxy.py 2020-02-17 14:43:43 +01:00
Asiel Díaz Benítez 369bb9166e Update message.py
use `email.message_from_bytes()` instead of decoding the bytes to then call `message_from_string`
2019-12-01 12:08:34 +01:00
Asiel Díaz Benítez 118599b4cc Update account.py
fix doc string
2019-08-20 17:10:39 +02:00
Asiel Díaz Benítez 8077fdeddb Update examples.rst
just replaced `send_text_message` with `send_text`
2019-08-15 01:47:03 +02:00