link2xt
67043177a9
fix: reopen all connections on database passpharse change
...
Previously only one connection, the one used to change the key,
was working after passphrase change.
With this fix the whole pool of connections
is recreated on passphrase change, so there is no need
to reopen the database manually.
2023-09-12 16:34:26 +00:00
link2xt
49cc5fb673
feat: add RSA-4096 key generation support
2023-09-12 12:33:34 +00:00
link2xt
68c95dee17
refactor(pgp): add constants for encryption algorithm and hash
...
These constants are current defaults in `pgp` crate,
this change would prevent accidental change due to rPGP upgrade
and make it easier to change in a single place.
2023-09-12 11:12:59 +02:00
iequidoo
9bd7ab7280
fix: apply_group_changes(): Forbid membership changes from possible non-members ( #3782 )
...
It can be not good for membership consistency if we missed a message adding a member, but improves
security because nobody can add themselves to a group from now on.
2023-09-12 00:30:02 -03:00
link2xt
7a359f6318
build(python): add link to mastodon into projects.urls
...
Such links are displayed on PyPI with mastodon icon.
2023-09-11 04:47:55 +00:00
link2xt
38b31aa88d
fix: do not block new group chats if 1:1 chat is blocked
...
1:1 chat may be blocked while the contact is not
if 1:1 chat was created as a result of scanning
a verified group join QR code with the contact
as the inviter. In this case 1:1 chat is blocked to hide it
while the contact is unblocked.
2023-09-10 21:44:56 +00:00
iequidoo
e12e026bd8
fix: Switch to original Hocuri's group membership consistency algo ( #3782 )( #4624 )
...
- If we don't know the parent (=In-Reply-To) message, then completely recreate the group member list
(i.e. use the member list of the incoming message) (because we assume that we missed some messages
& have a wrong group state).
- If the message has a "Chat-Group-Member-Removed: member@example.com " header, then remove this
member.
- If the message has a "Chat-Group-Member-Added: member@example.com " header, then add this member.
That means:
- Remove checks for the presense of `ContactId::SELF` in the group. Thus all recipients of a message
take the same decision about group membership changes, no matter if they are in the group
currently. This fixes a situation when a recipient thinks it's not a member because it missed a
message about its addition before.
NOTE: But always recreate membership list if SELF has been added. The older versions of DC don't
always set "In-Reply-To" to the latest message they sent, but to the latest delivered message (so
it's a race), so we need this heuristic currently.
- Recreate the group member list if we don't know the parent (=In-Reply-To) message, even if the
sender isn't in the group as per our view, because we missed some messages and our view may be
stale.
2023-09-09 16:22:13 -03:00
iequidoo
212fbc125c
fix: ChatId::parent_query(): Don't filter out OutPending and OutFailed messages
...
The new message for which `parent_query()` is done may assume that it will be received in a context
affected by those messages, e.g. they could add new members to a group and the new message will
contain them in "To:". Anyway recipients must be prepared to orphaned references.
2023-09-09 16:22:13 -03:00
link2xt
2939de013b
api(jsonrpc): return only chat IDs for similar chats
...
This is already the way `get_chatlist_entries` works.
`get_similar_chatlist_entries` is renamed into
`get_similar_chat_ids` because return values are not entries anymore.
2023-09-08 18:47:31 +00:00
link2xt
4a0585404a
chore(cargo): bump webpki from 0.22.0 to 0.22.1
2023-09-08 07:00:55 +00:00
link2xt
0562e23ee0
chore(cargo): bump webpki from 0.22.0 to 0.22.1
2023-09-08 07:00:18 +00:00
link2xt
dcbf5996c2
Merge tag 'v1.121.0'
2023-09-06 21:46:07 +00:00
link2xt
a8551510cd
chore(release): prepare for 1.121.0
v1.121.0
2023-09-06 20:53:00 +00:00
link2xt
087f6edd0c
refactor: make set_msg_failed accept &mut Message instead of MsgId
2023-09-06 20:33:37 +00:00
link2xt
d6b7ee04a0
docs: document range argument of render_webxdc_status_update_object()
2023-09-06 20:33:37 +00:00
link2xt
d5c5ff8b3f
refactor: accept &mut Message in create_send_msg_job()
2023-09-06 20:33:37 +00:00
link2xt
dc4396a699
fix: update passed by reference Message in prepare_msg_raw()
2023-09-06 20:33:37 +00:00
link2xt
a74b00c3f9
refactor: move try_calc_and_set_dimensions() call to prepare_msg_blob()
2023-09-06 20:33:37 +00:00
link2xt
2fdb9f8b7e
fix: do not ignore errors in try_calc_and_set_dimensions
2023-09-06 20:33:37 +00:00
link2xt
80fac3f1b8
refactor: use let-else in resend_msgs()
2023-09-06 20:33:37 +00:00
link2xt
17a6c88cc7
api: add Message.set_file_from_bytes() API
2023-09-06 20:33:37 +00:00
link2xt
1ba69dbb9b
fix: reset MIME type if passed to set_file value is None
2023-09-06 20:33:37 +00:00
link2xt
ab1c7ebbe2
refactor: remove unnecessary local variable save_param
2023-09-06 20:33:37 +00:00
link2xt
ee715da078
fix: do not ignore chat loading errors in forward_msgs()
2023-09-06 20:33:37 +00:00
link2xt
27e177dc05
refactor: resultify set_msg_failed()
2023-09-06 20:33:37 +00:00
link2xt
7aac4bfc83
docs: document WebXDC-related SQL tables
2023-09-06 20:33:37 +00:00
link2xt
7b24f9b7a4
docs: comment that msgs_status_updates.update_item_read column is unused
2023-09-06 20:33:37 +00:00
link2xt
b36b902eeb
build: build node packages on Ubuntu 18.04
...
Debian 10 has glibc 2.28, so packages built with it
do not work on Ubuntu 18.04.
2023-09-06 17:23:04 +00:00
dependabot[bot]
f7a47e60cd
Merge pull request #4664 from deltachat/dependabot/cargo/strum_macros-0.25.2
2023-09-05 19:08:04 +00:00
link2xt
30024abb6c
feat: add API to get similar chats
2023-09-05 16:47:19 +00:00
link2xt
1d9702e9e7
refactor: add ChatId::get_timestamp()
2023-09-05 16:47:19 +00:00
link2xt
ee2eae63d6
fix: do not allow dots at the end of email addresses
2023-09-05 13:14:37 +00:00
link2xt
cd477936b5
api: add dc_context_change_passphrase()
2023-09-05 12:41:31 +00:00
Hocuri
2587ebbacd
fix: Clear VerifiedOneOnOneChats config on backup ( #4681 )
...
If the user makes a backup from a UI that supports the experimental verified 1:1 chats (e.g. nightly Android) and imports it into a UI that doesn't, then this config should be cleared.
We already talked about this a long time ago after @Simon-Laux noticed this problem, but I think we didn't actually solve it back then?
Best to review with whitespace changes disabled.
2023-09-05 09:15:15 +02:00
link2xt
dbe9d7e34e
refactor(provider): create provider database entries at compile time
...
According to cargo-llvm-lines it reduces the number of lines
in the crate by 0.7%.
2023-09-05 00:03:34 +00:00
dependabot[bot]
4815e9b990
Merge pull request #4680 from deltachat/dependabot/cargo/regex-1.9.5
2023-09-05 00:03:09 +00:00
dependabot[bot]
f05b0ddf04
chore(cargo): bump regex from 1.9.1 to 1.9.5
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.1 to 1.9.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.1...1.9.5 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-04 19:09:31 +00:00
link2xt
f94d34c94b
chore: remove idna from deny.toml
2023-09-04 19:08:49 +00:00
link2xt
e9811fb6da
AsyncResolver::tokio does not return a Result anymore
2023-09-04 19:08:49 +00:00
dependabot[bot]
178fc1736d
chore(cargo): bump trust-dns-resolver from 0.22.0 to 0.23.0
...
Bumps [trust-dns-resolver](https://github.com/bluejekyll/trust-dns ) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/bluejekyll/trust-dns/releases )
- [Changelog](https://github.com/bluejekyll/trust-dns/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bluejekyll/trust-dns/compare/v0.22.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: trust-dns-resolver
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-04 19:08:49 +00:00
dependabot[bot]
54d632adaf
chore(cargo): bump axum from 0.6.19 to 0.6.20
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.6.19 to 0.6.20.
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.19...axum-v0.6.20 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-04 19:08:34 +00:00
Hocuri
ae939e79da
Merge remote-tracking branch 'origin/stable'
2023-09-04 19:19:50 +02:00
link2xt
49f143e0d5
refactor: make get_abs_path non-generic
...
Generic functions compile into multiple implementations,
increasing number of lines for LLVM to process,
code size and compilation times.
2023-09-04 00:43:24 +00:00
link2xt
9d7bdf369d
refactor: use slices instead of vectors in provider database
2023-09-03 20:19:58 +00:00
dependabot[bot]
e12ef805a9
Merge pull request #4675 from deltachat/dependabot/cargo/backtrace-0.3.69
2023-09-03 19:50:35 +00:00
dependabot[bot]
b36acb2dc0
chore(cargo): bump log from 0.4.19 to 0.4.20
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.19 to 0.4.20.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.19...0.4.20 )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-03 02:25:33 +00:00
dependabot[bot]
1b883ae3fa
chore(cargo): bump typescript-type-def from 0.5.7 to 0.5.8
...
Bumps [typescript-type-def](https://github.com/dbeckwith/rust-typescript-type-def ) from 0.5.7 to 0.5.8.
- [Changelog](https://github.com/dbeckwith/rust-typescript-type-def/blob/master/CHANGELOG.md )
- [Commits](https://github.com/dbeckwith/rust-typescript-type-def/compare/v0.5.7...v0.5.8 )
---
updated-dependencies:
- dependency-name: typescript-type-def
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-03 02:25:00 +00:00
dependabot[bot]
72c94e1037
chore(cargo): bump serde from 1.0.180 to 1.0.188
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.180 to 1.0.188.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.188 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-03 02:24:33 +00:00
adbenitez
a270db1d87
remove aiodns optional dependency from required dependencies
2023-09-03 00:32:08 +00:00
dependabot[bot]
0a4c993bb8
chore(cargo): bump serde_json from 1.0.104 to 1.0.105
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.105 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-03 00:01:58 +00:00