Skip to content

Commit 954067e

Browse files
committed
Merge tag 'v1.119.0'
2 parents aecbebd + e43f906 commit 954067e

File tree

12 files changed

+63
-18
lines changed

12 files changed

+63
-18
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Changelog
22

3+
## [1.119.0] - 2023-08-03
4+
5+
### Fixes
6+
7+
- imap: Avoid IMAP move loops when DeltaChat folder is aliased.
8+
- imap: Do not resync IMAP after initial configuration.
9+
10+
- webxdc: Accept WebXDC updates in mailing lists.
11+
- webxdc: Base64-encode WebXDC updates to prevent corruption of large unencrypted WebXDC updates.
12+
- webxdc: Delete old webxdc status updates during housekeeping.
13+
14+
- Return valid MsgId from `receive_imf()` when the message is replaced.
15+
- Emit MsgsChanged event with correct chat id for replaced messages.
16+
17+
- deltachat-rpc-server: Update tokio-tar to fix backup import.
18+
19+
### Features / Changes
20+
21+
- deltachat-rpc-client: Add `MSG_DELETED` constant.
22+
- Make `dc_msg_get_filename()` return the original attachment filename ([#4309](https://github.com/deltachat/deltachat-core-rust/pull/4309)).
23+
24+
### API-Changes
25+
26+
- deltachat-rpc-client: Add `Account.{import,export}_backup` methods.
27+
- deltachat-jsonrpc: Make `MessageObject.text` non-optional.
28+
29+
### Documentation
30+
31+
- Update default value for `show_emails` in `dc_set_config()` documentation.
32+
33+
### Refactor
34+
35+
- Improve IMAP logs.
36+
37+
### Tests
38+
39+
- Add basic import/export test for async python.
40+
- Add `test_webxdc_download_on_demand`.
41+
- Add tests for deletion of webxdc status-updates.
42+
343
## [1.118.0] - 2023-07-07
444

545
### API-Changes

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "deltachat"
3-
version = "1.118.0"
3+
version = "1.119.0"
44
edition = "2021"
55
license = "MPL-2.0"
66
rust-version = "1.67"

deltachat-ffi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "deltachat_ffi"
3-
version = "1.118.0"
3+
version = "1.119.0"
44
description = "Deltachat FFI"
55
edition = "2018"
66
readme = "README.md"

deltachat-jsonrpc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "deltachat-jsonrpc"
3-
version = "1.118.0"
3+
version = "1.119.0"
44
description = "DeltaChat JSON-RPC API"
55
edition = "2021"
66
default-run = "deltachat-jsonrpc-server"

deltachat-jsonrpc/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@
5555
},
5656
"type": "module",
5757
"types": "dist/deltachat.d.ts",
58-
"version": "1.118.0"
58+
"version": "1.119.0"
5959
}

deltachat-repl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "deltachat-repl"
3-
version = "1.118.0"
3+
version = "1.119.0"
44
license = "MPL-2.0"
55
edition = "2021"
66

deltachat-rpc-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "deltachat-rpc-server"
3-
version = "1.118.0"
3+
version = "1.119.0"
44
description = "DeltaChat JSON-RPC server"
55
edition = "2021"
66
readme = "README.md"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@
6060
"test:mocha": "mocha -r esm node/test/test.js --growl --reporter=spec --bail --exit"
6161
},
6262
"types": "node/dist/index.d.ts",
63-
"version": "1.118.0"
63+
"version": "1.119.0"
6464
}

python/tests/test_1_online.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ def test_webxdc_download_on_demand(acfactory, data, lp):
376376
ac2._evtracker.get_matching("DC_EVENT_WEBXDC_STATUS_UPDATE")
377377
assert msg2.get_status_updates()
378378

379+
# Get a event notifying that the message disappeared from the chat.
380+
msgs_changed_event = ac2._evtracker.get_matching("DC_EVENT_MSGS_CHANGED")
381+
assert msgs_changed_event.data1 == msg2.chat.id
382+
assert msgs_changed_event.data2 == 0
383+
379384

380385
def test_mvbox_sentbox_threads(acfactory, lp):
381386
lp.sec("ac1: start with mvbox thread")

release-date.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023-07-07
1+
2023-08-03

src/receive_imf.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub(crate) async fn receive_imf_inner(
143143

144144
// check, if the mail is already in our database.
145145
// make sure, this check is done eg. before securejoin-processing.
146-
let replace_partial_download =
146+
let (replace_partial_download, replace_chat_id) =
147147
if let Some(old_msg_id) = message::rfc724_mid_exists(context, rfc724_mid).await? {
148148
let msg = Message::load_from_db(context, old_msg_id).await?;
149149
if msg.download_state() != DownloadState::Done && is_partial_download.is_none() {
@@ -152,14 +152,14 @@ pub(crate) async fn receive_imf_inner(
152152
context,
153153
"Message already partly in DB, replacing by full message."
154154
);
155-
Some(old_msg_id)
155+
(Some(old_msg_id), Some(msg.chat_id))
156156
} else {
157157
// the message was probably moved around.
158158
info!(context, "Message already in DB, doing nothing.");
159159
return Ok(None);
160160
}
161161
} else {
162-
None
162+
(None, None)
163163
};
164164

165165
let prevent_rename =
@@ -347,8 +347,8 @@ pub(crate) async fn receive_imf_inner(
347347
}
348348
}
349349

350-
if replace_partial_download.is_some() {
351-
context.emit_msgs_changed(chat_id, MsgId::new(0));
350+
if let Some(replace_chat_id) = replace_chat_id {
351+
context.emit_msgs_changed(replace_chat_id, MsgId::new(0));
352352
} else if !chat_id.is_trash() {
353353
let fresh = received_msg.state == MessageState::InFresh;
354354
for msg_id in &received_msg.msg_ids {

0 commit comments

Comments
 (0)