Simon Laux
da11148e1b
fix: npm rpc: set default options for startDeltaChat
...
this fixes an "undefined" error
2024-05-20 18:09:55 +02:00
Simon Laux
dd77d32446
fix: log/print exit error of deltachat-rpc-server ( #5601 )
...
see also #5599 (this logs that error atleast, but does not fix it yet)
---------
Co-authored-by: iequidoo <117991069+iequidoo@users.noreply.github.com >
2024-05-20 10:47:36 +00:00
link2xt
b32fb05ab8
fix: ignore event channel overflows
...
async-broadcast returns Overflowed error once
if channel overflow happened.
Public APIs such as get_next_event JSON-RPC method
are only expecting an error if the channel is closed,
so we should not propagate overflow error outside.
In particular, Delta Chat Desktop
stop receiving events completely if an error
is returned once.
If overflow happens, we should ignore it
and try again until we get an event or an error because
the channel is closed (in case of recv())
or empty (in case of try_recv()).
2024-05-20 10:44:35 +00:00
link2xt
918d87dcb6
refactor: do not try to lookup group in create_or_lookup_group()
2024-05-20 05:20:38 +00:00
link2xt
98ae05ee59
refactor: stop trying to extract chat ID from Message-IDs
2024-05-20 05:20:38 +00:00
link2xt
cff5c064a6
refactor: use let..else in create_or_lookup_group()
2024-05-20 05:20:38 +00:00
link2xt
e9cef4b0ba
refactor(receive_imf): only call create_or_lookup_group() with allow_creation=true
2024-05-20 05:20:38 +00:00
link2xt
7f2c8ff53d
refactor(receive_imf): remove unnecessary check for is_mdn
...
If message is an MDN, it is already assigned to the trash chat
by now, so it is enough to check if the message
is not assigned to chat yet.
2024-05-20 05:20:38 +00:00
link2xt
46d6b81058
refactor(receive_imf): do not check for ContactId::UNDEFINED
...
from_id should not be undefined,
we either should create a contact for it by then
or reject the message.
2024-05-20 05:20:38 +00:00
link2xt
6d59fb49aa
feat: replace env_logger with tracing_subscriber
...
This allows to get iroh logs with
RUST_LOG=iroh_net=trace
2024-05-19 23:22:37 +00:00
Simon Laux
97602f3fd7
fix: sql syntax error in db migration 27
2024-05-19 20:15:22 +02:00
Simon Laux
f17987743e
fix: db migration version 59, it contained an sql syntax error
2024-05-19 20:15:22 +02:00
link2xt
5767cce178
fix(mimeparser): take the last header of multiple ones with the same name
...
If multiple headers with the same name are present,
we must take the last one.
This is the one that is DKIM-signed if
this header is DKIM-signed at all.
Ideally servers should prevent adding
more From, To and Cc headers by oversigning
them, but unfortunately it is not common
and OpenDKIM in its default configuration
does not oversign any headers.
2024-05-18 22:24:39 +00:00
link2xt
20a4bb1a88
api(deltachat-rpc-client): add Account.wait_for_incoming_msg()
2024-05-18 22:24:17 +00:00
link2xt
578f29f215
chore(release): prepare for 1.139.2
v1.139.2
2024-05-18 20:58:03 +00:00
link2xt
6c9643e39e
build: add repository URL to @deltachat/jsonrpc-client
2024-05-18 20:56:11 +00:00
link2xt
502ae7fd9f
chore(release): prepare for 1.139.1
v1.139.1
2024-05-18 20:40:34 +00:00
link2xt
8cb527342a
ci: set --access public when publishing to npm
...
Otherwise it fails to upload new packages with provenance.
2024-05-18 20:39:41 +00:00
link2xt
964c943dd9
chore(release): prepare for 1.139.0
v1.139.0
2024-05-18 19:42:54 +00:00
Simon Laux
a971ad1f85
npm rpc server: fix example ( #5580 )
2024-05-18 19:58:44 +02:00
link2xt
e66b9de922
fix: do not mark the message as seen if it has location.kml
2024-05-18 16:09:55 +00:00
adbenitez
5db202169b
fix: save override sender displayname for outgoing messages
...
Co-authored-by: link2xt <link2xt@testrun.org >
2024-05-18 16:08:53 +00:00
link2xt
b292b191ff
test(deltachat-rpc-client): test sending vCard
2024-05-18 14:00:57 +00:00
link2xt
450ff411ec
api(deltachat-rpc-client): add Chat.send_contact()
2024-05-18 14:00:57 +00:00
link2xt
8de92e54eb
api(deltachat-rpc-client): add Contact.make_vcard()
2024-05-18 14:00:57 +00:00
link2xt
d0844c3e62
api(deltachat-rpc-client): add ViewType.VCARD constant
2024-05-18 14:00:57 +00:00
link2xt
37d61e41ca
api(deltachat-jsonrpc): return vcard contact directly in MessageObject
2024-05-17 23:37:29 +00:00
Simon Laux
0c7dad961d
npm rpc: fix convert_platform.py: 32bit i32 -> ia32 ( #5589 )
2024-05-17 23:35:50 +02:00
Sebastian Klähn
36f1fc4f9d
feat: ephemeral peer channels ( #5346 )
...
Co-authored-by: link2xt <link2xt@testrun.org >
Co-authored-by: iequidoo <117991069+iequidoo@users.noreply.github.com >
2024-05-17 20:13:21 +00:00
Simon Laux
517cb821fb
jsonrpc: add api migrate_account and get_blob_dir ( #5584 )
...
closes #5533
adds the functions that were still missing for migration to jsonrpc (the
ones that the cffi already had, so just should be quick to review ;)
2024-05-17 21:33:59 +02:00
Simon Laux
ef6c3f8476
fix: rpc npm: fix local desktop development ( #5583 )
...
typescript was complaining about missing `@deltachat/jsonrpc-client`
when it wasn't installed locally
2024-05-17 21:28:33 +02:00
link2xt
f84f0d5ad9
ci: check that constants are always up-to-date
2024-05-17 19:23:27 +00:00
Simon Laux
d8e98279c4
rpc npm: rename shutdown method to close and add muteStdErr option to mute the stderr output ( #5588 )
2024-05-17 21:14:38 +02:00
link2xt
424ac606d8
ci: publish @deltachat/jsonrpc-client directly to npm
2024-05-17 19:10:39 +00:00
Sebastian Klähn
2f35d9a013
use rust-analyzer nightly
2024-05-17 17:37:51 +00:00
Sebastian Klähn
e5259176c9
nix: add git-cliff to flake
2024-05-17 17:36:02 +00:00
link2xt
c370195698
chore(cargo): downgrade libc from 0.2.154 to 0.2.153
...
0.2.154 is yanked.
2024-05-17 13:52:19 +00:00
Simon Laux
0ba0bd3d77
fix(@deltachat/stdio-rpc-server): fix version check when deltachat-rpc-server is found in path ( #5579 )
2024-05-17 11:11:11 +02:00
link2xt
d23a7b8523
chore(release): prepare for 1.138.5
v1.138.5
2024-05-16 15:07:46 +00:00
link2xt
935f503bc7
chore: rebuild node constants
2024-05-16 15:01:56 +00:00
link2xt
a0f0a8e021
build: add repository URL to deltachat-rpc-server packages
2024-05-16 14:59:45 +00:00
iequidoo
6290ed8752
api: Add make_vcard() ( #5203 )
...
Add a function returning a vCard containing contacts with the given ids.
2024-05-15 21:49:59 -03:00
iequidoo
a38f0ba09e
refactor: VcardContact: Change timestamp type to i64
...
- u64 only adds unnecessary conversions.
- `Contact::last_seen` is also `i64`, so make timestamps such everywhere.
2024-05-15 21:07:24 -03:00
iequidoo
191624f334
refactor(contact-tools): VcardContact: rename display_name to authname
...
It's actually `deltachat::contact::Contact::authname` by semantics. `display_name`/`name` shouldn't
be shared, it's the name given by the user locally.
2024-05-15 21:07:24 -03:00
Hocuri
5292a49bb1
fix: parsing vCards with avatars exported by Android's "Contacts" app
2024-05-15 21:07:24 -03:00
iequidoo
22f01a2699
api: Add Viewtype::Vcard ( #5202 )
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2024-05-15 21:07:24 -03:00
iequidoo
95238b6e17
api(jsonrpc): Add parse_vcard() ( #5202 )
...
Add a function parsing a vCard file at the given path.
Co-authored-by: Hocuri <hocuri@gmx.de >
Co-authored-by: Asiel Díaz Benítez <asieldbenitez@gmail.com >
2024-05-15 21:07:24 -03:00
link2xt
4a738ebd19
chore(release): prepare for 1.138.4
v1.138.4
2024-05-15 21:59:28 +00:00
link2xt
d02eccd303
ci: run actions/setup-node before npm publish
...
Otherwise it does not try to use NODE_AUTH_TOKEN.
2024-05-15 21:57:24 +00:00
link2xt
f1fa053f9f
chore(release): prepare for 1.138.3
v1.138.3
2024-05-15 20:42:34 +00:00