link2xt
0fbab7147a
fix: prefer Chat-Group-ID over references for new groups
2024-06-03 14:10:32 +00:00
link2xt
de57ef5ac7
refactor: factor create_adhoc_group() call out of create_group()
2024-06-03 14:10:32 +00:00
link2xt
f48a047fe0
test: refactor test_alias_* into 8 separate tests
2024-06-03 14:10:32 +00:00
link2xt
8ba08432c5
docs: fix a typo in test_partial_group_consistency()
2024-06-03 14:10:32 +00:00
link2xt
bf34bd3a62
docs: create_group() does not find chats, only creates them
2024-06-03 14:10:32 +00:00
iequidoo
768ef772bb
feat: Add a db index for reactions by msg_id ( #5507 )
...
This should speed up `get_msg_reactions()` filtering reactions by `msg_id`, but also queries in
other places involving both `msg_id` and `contact_id`.
2024-06-01 11:43:15 -03:00
link2xt
69842c18f7
test: fix logging of TestContext created using TestContext::new_alice()
...
Before this fix LogSink was dropped immediately,
resulting in no logs printed for contexts created using
TextContext::new_alice(), but printed for contexts created
using TextContext::new().
2024-05-30 21:14:41 +00:00
link2xt
42a7cd3eea
fix: allow creation of groups by outgoing messages without recipients
...
`!to_ids().is_empty()` check is needed in cases of 1:1 chat creation
because otherwise `to_id` is undefined,
but in case of outgoing group message without recipients
observed on a second device creating a group should be allowed.
2024-05-30 18:01:32 +00:00
iequidoo
70ad323c9a
fix: AEAP: Remove old peerstate verified_key instead of removing the whole peerstate ( #5535 )
...
When doing an AEAP transition, we mustn't just delete the old peerstate as this would break
encryption to it. This is critical for non-verified groups -- if we can't encrypt to the old
address, we can't securely remove it from the group (to add the new one instead).
2024-05-30 10:38:39 -03:00
iequidoo
27bf4c37a7
feat: Map *.wav to Viewtype::Audio ( #5633 )
...
It seems there are no problems with playing WAV on all modern platforms, so such files should be
displayed in the "AUDIO", not "FILES" tab in the UIs.
2024-05-30 10:33:10 -03:00
iequidoo
1cc31c1038
feat: Remove limit on number of email recipients for chatmail clients ( #5598 )
2024-05-27 16:59:01 -03:00
iequidoo
adb0dd43a7
fix: Set Param::Bot for messages on the sender side as well ( #5615 )
2024-05-27 16:29:41 -03:00
link2xt
4f071e3b31
fix: acquire write lock on iroh_channels before checking for subscribe_loop
2024-05-25 05:46:55 +00:00
link2xt
518d5bc4c7
refactor: log IMAP connection type on connection failure
...
Otherwise it is impossible to distinguish between
failure to establish INBOX and DeltaChat folder connections
in the logs.
2024-05-24 00:13:56 +00:00
link2xt
0e1f62a38d
build: update iroh to the git version
...
This fixes the problem with simultaneous connections in iroh-gossip:
<https://github.com/n0-computer/iroh/pull/2318 >
2024-05-23 22:58:45 +00:00
iequidoo
af4b59fe0a
test: Viewtype::File attachments are sent unchanged and preserve extensions
2024-05-23 17:10:52 -03:00
iequidoo
20e64c71f8
test: "SecureJoin wait" state and info messages
2024-05-23 14:36:13 +02:00
iequidoo
2214d140c3
fix: Don't recode images in Viewtype::File messages ( #5617 )
2024-05-23 14:35:38 +02:00
Sebastian Klähn
8cb699290a
fix: connect to peers that advertise to you
2024-05-21 22:12:23 +00:00
link2xt
2e5ad3f3a0
test(peer_channels): add test_parallel_connect()
2024-05-21 22:10:15 +00:00
link2xt
469ff799ad
api: add event channel overflow event
2024-05-21 22:05:48 +00:00
iequidoo
ff60605a7f
test: import_vcard() updates only the contact's gossip key
2024-05-21 17:40:07 +00:00
iequidoo
7010e80336
fix: make_vcard: Add authname and key for ContactId::SELF
2024-05-21 17:40:07 +00:00
iequidoo
8c5d8477fb
feat: Add import_vcard() ( #5202 )
...
Add a function importing contacts from the given vCard.
2024-05-21 17:40:07 +00:00
iequidoo
10fe6929b0
feat: Scale up contact origins to OutgoingTo when sending a message
2024-05-21 17:40:07 +00:00
link2xt
6fc0000c8a
fix: do not log warning if iroh relay metadata is NIL
2024-05-21 15:24:08 +00:00
link2xt
607f5959ab
fix: always convert absolute paths to relative in accounts.toml
...
Even if the path does not start with
the directory containing the config,
we want to keep only the last component.
2024-05-20 17:49:21 +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
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
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
37d61e41ca
api(deltachat-jsonrpc): return vcard contact directly in MessageObject
2024-05-17 23:37:29 +00: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
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
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
8cd85fa7a4
feat: reset more settings when configuring a chatmail account
2024-05-15 06:30:17 +00:00
link2xt
eec1062619
feat: detect XCHATMAIL capability and expose it as is_chatmail config
2024-05-14 22:17:46 +00:00
link2xt
07ceabdf85
refactor: resultify token::lookup_or_new()
2024-05-14 20:32:23 +00:00
link2xt
170e4b3530
refactor(sql): make open flags immutable
2024-05-14 14:55:04 +00:00
link2xt
5ed91e9f6e
refactor: make MimeMessage.get_header() return Option<&str>
2024-05-13 17:07:58 +00:00
link2xt
0d3c0a3d8f
fix: ignore parent message if message references itself
...
When there are no parent references,
Delta Chat inserts Message-ID into References.
Such references should be ignored
because otherwise fully downloaded message
may be assigned to the same chat as previously incorrectly assigned
partially downloaded message.
Fixes receive_imf::tests::test_create_group_with_big_msg
2024-05-13 13:29:06 +00:00