iequidoo
4ec50d1990
refactor: Add why_cant_send_ex() capable to only ignore specified conditions
...
Before, `Chat::why_cant_send()` just returned `CantSendReason` after the first unsuccessful check
allowing to handle the result and finally send the message if the condition is acceptable in which
case the remaining checks are not done. This didn't result in any bugs, but to make the code more
robust let's add a functional parameter to filter failed checks without early return.
2025-01-12 01:13:53 -03:00
link2xt
187274d7b7
fix: create new tombstone in chats_contacts if the row does not exist
...
Otherwise new members do not see past members
even if they receive info about them in every message.
2025-01-12 01:42:02 +00:00
Hocuri
5dc8788eab
chore: Beta Clippy suggestions ( #6422 )
2025-01-11 17:58:38 +01:00
link2xt
de63527d94
feat: new group consistency algorithm
...
This implements new group consistency algorithm described in
<https://github.com/deltachat/deltachat-core-rust/issues/6401 >
New `Chat-Group-Member-Timestamps` header is added
to send timestamps of member additions and removals.
Member is part of the chat if its addition timestamp
is greater or equal to the removal timestamp.
2025-01-11 07:52:49 +00:00
link2xt
cb43382896
ci: update Rust to 1.84.0
2025-01-10 01:58:08 +00:00
Simon Laux
a9e177f1e7
build!: remove jsonrpc feature flag
...
It is enabled everywhere by default since some time now. Breaking, because existing build scripts might need to be adjusted.
2025-01-09 15:56:07 +00:00
link2xt
6e8668e348
build: increase minimum supported Python version to 3.8
...
Python 3.7 is not supported on GitHub Actions ubuntu-latest runner:
https://github.com/actions/setup-python/issues/962
Python 3.7 has reached EOL more than 1 year ago anyway,
so not worth the effort supporting it.
2025-01-09 14:58:01 +00:00
link2xt
7f7c76f706
test: use assert_eq! to compare chatlist length
2025-01-05 23:44:34 +00:00
link2xt
3fe9a7b17f
refactor: use let..else
2025-01-05 23:44:28 +00:00
link2xt
fff4020013
chore(release): prepare for 1.153.0
v1.153.0
2025-01-05 09:08:23 +00:00
link2xt
4ffc0ca047
refactor: don't ignore get_for_contact errors
2025-01-05 02:52:19 +00:00
link2xt
3d19996f34
test: fix test_logged_ac_process_ffi_failure flakiness
...
This test keeps failing on macOS CI,
capturing events like `DC_EVENT_ACCOUNTS_ITEM_CHANGED`
before FailPlugin is setup.
These CI runners likely get less resources
because there is a limited number of them,
and this triggers this race condition.
Race is fixed by setting up fail plugin
before starting to capture events.
2025-01-05 01:36:09 +00:00
link2xt
7e5cec66ba
refactor: simplify self_sent condition
2025-01-05 00:36:10 +00:00
link2xt
a7eab13ad6
test: message with empty To: field should have a valid to_id
2025-01-05 00:36:10 +00:00
link2xt
d26a27484b
fix: default to_id to self instead of 0
...
If message has empty `To` field
it is a self-sent message like a message
in Saved Messages chat or a sync message.
2025-01-05 00:36:10 +00:00
link2xt
ed2a3a76b4
test: messages without recipients are assigned to self chat
...
Previously such messages were assigned to trash.
2025-01-05 00:36:10 +00:00
link2xt
49f5523b67
fix: allow empty To field for self-sent messages
...
Currently Delta Chat puts self address in the To field
to avoid the To field being empty.
There is a plan to put empty `hidden-recipients`
group there, this fix prepares the receiver for such messages.
2025-01-05 00:36:10 +00:00
link2xt
548fadc84a
fix: prioritize mailing list over self-sent messages
...
New Delta Chat is going to send self-sent messages
with undisclosed recipients instead of placing self into the `To` field.
To avoid assigning broadcast list messages to Saved Messages chat,
we should check the mailing list headers
before attempting to assign to Saved Messages.
2025-01-05 00:36:10 +00:00
iequidoo
2bce4466d7
fix: Prefer to encrypt if E2eeEnabled even if peers have EncryptPreference::NoPreference
...
First of all, chatmail servers normally forbid to send unencrypted mail, so if we know the peer's
key, we should encrypt to it. Chatmail setups have `E2eeEnabled=1` by default and this isn't
possible to change in UIs, so this change fixes the chatmail case. Additionally, for chatmail, if a
peer has `EncryptPreference::Reset`, let's handle it as `EncryptPreference::NoPreference` for the
reason above. Still, if `E2eeEnabled` is 0 for a chatmail setup somehow, e.g. the user set it via
environment, let's assume that the user knows what they do and ignore `IsChatmail` flag.
NB:
- If we don't know the peer's key, we should try to send an unencrypted message as before for a
chatmail setup.
- This change doesn't remove the "majority rule", but now the majority with
`EncryptPreference::NoPreference` can't disable encryption if the local preference is `Mutual`. To
disable encryption, some peer should have a missing peerstate or, for the non-chatmail case, the
majority should have `EncryptPreference::Reset`.
2025-01-04 20:16:38 -03:00
link2xt
f31e86d203
chore: lockfile update
2025-01-04 06:49:46 +00:00
link2xt
8ec098210e
fix: update shadowsocks crate to 1.22.0 to avoid panic when parsing some QR codes
...
`aead-cipher` feature has become optional
and is disabled by default.
We enable it to avoid breaking compatibility.
2025-01-03 23:56:47 +00:00
dependabot[bot]
62e22286bb
chore(cargo): bump testdir from 0.9.1 to 0.9.3
...
Bumps [testdir](https://github.com/flub/testdir ) from 0.9.1 to 0.9.3.
- [Changelog](https://github.com/flub/testdir/blob/main/CHANGELOG.md )
- [Commits](https://github.com/flub/testdir/compare/v0.9.1...v0.9.3 )
---
updated-dependencies:
- dependency-name: testdir
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-03 20:50:30 -03:00
iequidoo
c596bfc44e
refactor: add_parts: Remove excessive is_mdn checks
2025-01-03 00:44:55 -03:00
dependabot[bot]
379b31835b
Merge pull request #6395 from deltachat/dependabot/cargo/serde-1.0.217
2025-01-03 02:27:19 +00:00
dependabot[bot]
5a69d9c355
chore(cargo): bump serde from 1.0.215 to 1.0.217
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.215 to 1.0.217.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.215...v1.0.217 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-03 01:57:45 +00:00
dependabot[bot]
e689db4376
Merge pull request #6387 from deltachat/dependabot/cargo/serde_json-1.0.134
2025-01-03 01:56:37 +00:00
dependabot[bot]
2d173512af
Merge pull request #6396 from deltachat/dependabot/cargo/rustls-0.23.20
2025-01-03 01:56:18 +00:00
dependabot[bot]
adddc8e4ad
Merge pull request #6388 from deltachat/dependabot/cargo/tokio-1.42.0
2025-01-03 01:23:31 +00:00
dependabot[bot]
29ee1fc047
Merge pull request #6390 from deltachat/dependabot/cargo/anyhow-1.0.95
2025-01-03 00:37:17 +00:00
dependabot[bot]
8a27c3edf0
chore(cargo): bump rustls from 0.23.19 to 0.23.20
...
Bumps [rustls](https://github.com/rustls/rustls ) from 0.23.19 to 0.23.20.
- [Release notes](https://github.com/rustls/rustls/releases )
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustls/rustls/compare/v/0.23.19...v/0.23.20 )
---
updated-dependencies:
- dependency-name: rustls
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-03 00:04:17 +00:00
dependabot[bot]
7164786165
chore(cargo): bump tokio from 1.41.1 to 1.42.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.41.1 to 1.42.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.41.1...tokio-1.42.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-02 23:50:08 +00:00
dependabot[bot]
0cfd84d803
chore(cargo): bump serde_json from 1.0.133 to 1.0.134
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.133 to 1.0.134.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.133...v1.0.134 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-02 23:47:43 +00:00
dependabot[bot]
d25cb22ae5
Merge pull request #6380 from deltachat/dependabot/cargo/tokio-util-0.7.13
2025-01-02 23:38:44 +00:00
dependabot[bot]
e236b55fbb
Merge pull request #6382 from deltachat/dependabot/cargo/tokio-rustls-0.26.1
2025-01-02 23:38:25 +00:00
dependabot[bot]
1dfb2a36e6
chore(cargo): bump anyhow from 1.0.93 to 1.0.95
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.93 to 1.0.95.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.93...1.0.95 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-02 22:57:38 +00:00
dependabot[bot]
15b6ed1210
Merge pull request #6398 from deltachat/dependabot/cargo/env_logger-0.11.6
2025-01-02 22:56:31 +00:00
dependabot[bot]
51e7bcf6a6
Merge pull request #6381 from deltachat/dependabot/cargo/rustls-pki-types-1.10.1
2025-01-02 22:52:38 +00:00
dependabot[bot]
e80d6ce803
Merge pull request #6392 from deltachat/dependabot/cargo/quote-1.0.38
2025-01-02 22:51:27 +00:00
dependabot[bot]
de36c05f18
Merge pull request #6379 from deltachat/dependabot/cargo/fast-socks5-0.10.0
2025-01-02 22:49:58 +00:00
dependabot[bot]
8c24dbd493
chore(cargo): bump tokio-rustls from 0.26.0 to 0.26.1
...
Bumps [tokio-rustls](https://github.com/rustls/tokio-rustls ) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/rustls/tokio-rustls/releases )
- [Commits](https://github.com/rustls/tokio-rustls/commits )
---
updated-dependencies:
- dependency-name: tokio-rustls
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-02 22:05:48 +00:00
dependabot[bot]
72312a3a43
chore(cargo): bump tokio-util from 0.7.12 to 0.7.13
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.7.12 to 0.7.13.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.12...tokio-util-0.7.13 )
---
updated-dependencies:
- dependency-name: tokio-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-02 22:05:21 +00:00
dependabot[bot]
06e3f0a738
Merge pull request #6394 from deltachat/dependabot/cargo/tokio-stream-0.1.17
2025-01-02 21:31:25 +00:00
dependabot[bot]
7ef4621ffd
chore(cargo): bump quote from 1.0.37 to 1.0.38
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.37 to 1.0.38.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.37...1.0.38 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-02 21:23:39 +00:00
dependabot[bot]
74d586ed93
Merge pull request #6386 from deltachat/dependabot/cargo/libc-0.2.169
2025-01-02 21:17:33 +00:00
dependabot[bot]
4de5867827
Merge pull request #6378 from deltachat/dependabot/cargo/chrono-0.4.39
2025-01-02 21:15:38 +00:00
dependabot[bot]
38836e8084
Merge pull request #6384 from deltachat/dependabot/cargo/hyper-1.5.2
2025-01-02 21:14:21 +00:00
dependabot[bot]
dde79fbf98
Merge pull request #6385 from deltachat/dependabot/cargo/async-broadcast-0.7.2
2025-01-02 21:09:07 +00:00
dependabot[bot]
65af309b16
Merge pull request #6389 from deltachat/dependabot/cargo/quick-xml-0.37.2
2025-01-02 21:08:07 +00:00
dependabot[bot]
502dd1157d
Merge pull request #6393 from deltachat/dependabot/cargo/syn-2.0.94
2025-01-02 21:07:37 +00:00
dependabot[bot]
1000fe5dec
Merge pull request #6397 from deltachat/dependabot/cargo/proptest-1.6.0
2025-01-02 20:16:49 +00:00