iequidoo
676f311f97
fix: lookup_chat_by_reply(): Skip not fully downloaded and undecipherable messages ( #4676 )
...
Such a message may be assigned to a wrong chat (e.g. undecipherable group msgs often get assigned to
the 1:1 chat with the sender). Add `DownloadState::Undecipherable` so that messages referencing
undecipherable ones don't go to that wrong chat too. Also do not reply to not fully downloaded
messages. Before `Message.error` was checked for that purpose, but a message can be error for many
reasons.
2023-09-18 14:55:56 +00:00
link2xt
790e867af0
Merge tag 'v1.122.0'
2023-09-12 18:04:05 +00:00
link2xt
f02299c06c
chore(release): prepare for 1.122.0
2023-09-12 17:33:22 +00: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
dcbf5996c2
Merge tag 'v1.121.0'
2023-09-06 21:46:07 +00:00
link2xt
a8551510cd
chore(release): prepare for 1.121.0
2023-09-06 20:53:00 +00:00
link2xt
30024abb6c
feat: add API to get similar chats
2023-09-05 16:47:19 +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
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]
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
dependabot[bot]
8ac1754e18
chore(cargo): bump tempfile from 3.7.0 to 3.8.0
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.7.0 to 3.8.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.0...v3.8.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 22:05:42 +00:00
dependabot[bot]
828c90ac3d
chore(cargo): bump tokio from 1.29.1 to 1.32.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.29.1 to 1.32.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.1...tokio-1.32.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 19:14:54 +00:00
dependabot[bot]
ab09ecce7e
chore(cargo): bump schemars from 0.8.12 to 0.8.13
...
Bumps [schemars](https://github.com/GREsau/schemars ) from 0.8.12 to 0.8.13.
- [Release notes](https://github.com/GREsau/schemars/releases )
- [Changelog](https://github.com/GREsau/schemars/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GREsau/schemars/compare/v0.8.12...v0.8.13 )
---
updated-dependencies:
- dependency-name: schemars
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 18:26:24 +00:00
link2xt
9a7d1faf75
Merge tag 'v1.120.0'
2023-08-28 11:55:53 +00:00
link2xt
4d74f625d3
chore(release): prepare for 1.120.0
2023-08-28 11:54:38 +00:00
link2xt
3b806320ec
Merge branch 'stable'
2023-08-24 22:25:02 +00:00
Simon Laux
d07c743cdc
api(jsonrpc): add resend_messages
2023-08-24 22:04:47 +00:00
dependabot[bot]
94cd9a713f
chore(cargo): bump sanitize-filename from 0.4.0 to 0.5.0
...
Bumps [sanitize-filename](https://github.com/kardeiz/sanitize-filename ) from 0.4.0 to 0.5.0.
- [Commits](https://github.com/kardeiz/sanitize-filename/commits )
---
updated-dependencies:
- dependency-name: sanitize-filename
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-24 18:42:54 +00:00
link2xt
d70c1d48b5
chore(release) prepare for 1.119.1
2023-08-06 16:49:06 +00:00
link2xt
e12044e6af
api!(deltachat-jsonrpc): use kind as a tag for all union types
2023-08-03 23:46:24 +00:00
link2xt
954067eb6d
Merge tag 'v1.119.0'
2023-08-03 17:05:00 +00:00
link2xt
e43f9066d8
chore(release): prepare for 1.119.0
2023-08-03 17:03:26 +00:00
link2xt
aecbebd566
docs: improve JSON-RPC API documentation
2023-08-03 16:06:36 +00:00
link2xt
3111bcde5e
refactor: flatten imports in deltachat-jsonrpc
2023-08-03 15:58:48 +00:00
link2xt
13e766bc37
feat(deltachat-rpc-server): add --openrpc option
2023-08-01 18:27:02 +00:00
iequidoo
f27d304f3b
feat!: Add lockfile to account manager ( #4310 )
...
Opening the same account (context) from multiple processes is dangerous, can result in duplicate
downloads of the same message etc. Same for account manager, attempts to modify the same
accounts.toml even if done atomically with may result in corrupted files as atomic replacement
procedure does not expect that multiple processes may write to the same temporary file.
accounts.toml cannot be used as a lockfile because it is replaced during atomic update. Therefore, a
new file next to accounts.toml is needed to prevent starting second account manager in the same
directory.
But iOS needs to be able to open accounts from multiple processes at the same time. This is required
as the "share-to-DC extension" is a separate process by iOS design -- this process may or may not be
started while the main app is running. Accounts are not altered however by this extension, so let's
add to the `Accounts::new()` constructor an `rdwr` parameter which allows to read the accounts
config w/o locking the lockfile.
2023-07-26 16:02:25 -03:00
link2xt
f930576fd1
Merge branch 'stable'
2023-07-24 18:40:44 +00:00
link2xt
b872953bc5
fix(deltachat-jsonrpc): make MessageObject.text non-optional
...
This is already non-optional on the `deltachat` crate side
since <https://github.com/deltachat/deltachat-core-rust/pull/4517 >
2023-07-24 18:36:56 +00:00
Simon Laux
b8fcb660ad
cargo fmt
2023-07-23 02:29:42 +02:00
Simon Laux
5673294623
api(jsonrpc): add resend_messages
2023-07-23 02:29:42 +02:00
link2xt
9d3b2d4844
chore(release): prepare for 1.118.0
2023-07-07 17:01:03 +00:00
link2xt
578e47666f
api!: replace message::get_msg_info() with MsgId.get_info()
2023-07-05 14:22:37 +00:00
link2xt
9c68fac4b6
api!: make Message.text non-optional
...
Message.set_text() and Message.get_text() are modified accordingly
to accept String and return String.
Messages which previously contained None text
are now represented as messages with empty text.
Use Message.set_text("".to_string())
instead of Message.set_text(None).
2023-07-03 15:36:32 +00:00
link2xt
fa1924da2b
api!(contact): remove Contact::load_from_db() in favor of Contact::get_by_id()
2023-07-02 23:00:49 +00:00
dependabot[bot]
32ac4a01ca
chore(cargo): bump tempfile from 3.5.0 to 3.6.0
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.5.0 to 3.6.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.5.0...v3.6.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 19:36:50 +00:00
dependabot[bot]
ce9cd54993
chore(cargo): bump serde_json from 1.0.96 to 1.0.99
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.96 to 1.0.99.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.96...v1.0.99 )
---
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-07-02 15:37:55 +00:00
dependabot[bot]
01d1c4c04b
chore(cargo): bump tokio from 1.29.0 to 1.29.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.29.0 to 1.29.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.0...tokio-1.29.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 01:18:16 +00:00
link2xt
f92108be1d
chore(release): prepare for 1.117.0
2023-06-16 16:42:17 +00:00
link2xt
92e34d67e6
chore: add openrpc.json to .gitignore
2023-06-16 14:32:09 +00:00
link2xt
33a014eea4
feat: add MsgDeleted event
2023-06-07 09:07:21 +00:00
link2xt
7a160033b6
chore(release): prepare for 1.116.0
2023-06-05 19:11:07 +00:00
dependabot[bot]
dd30f6ab7d
cargo: bump tokio from 1.28.0 to 1.28.2
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.28.0 to 1.28.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.0...tokio-1.28.2 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-04 14:24:16 +00:00
Franz Heinzmann (Frando)
5b435d11c7
feat(jsonrpc): generate OpenRPC definitions
...
When running `cargo test` in the deltachat-jsonrpc folder,
a new file `openrpc/openrpc.json` will be created with an
[OpenRPC](https://spec.open-rpc.org/ ) definition.
It can be copy-pasted into the
[OpenRPC playground](https://playground.open-rpc.org/ )
and used to generate clients in other languages.
2023-05-21 22:11:07 +00:00
link2xt
f9dc8edbcb
feat: add more context to message loading errors
2023-05-16 19:40:38 +00:00
link2xt
2e6f98f4e4
api: add dc_jsonrpc_blocking_call()
2023-05-15 19:55:13 +00:00
link2xt
ce729263a5
chore(release): prepare for v1.115.0
2023-05-13 18:45:51 +00:00
Simon Laux
fb8b9f60ce
api: jsonrpc: new MessageReadReceipt type and get_message_read_receipts(account_id, message_id) jsonrpc method
2023-05-12 16:32:52 +02:00
Asiel Díaz Benítez
4a593a8d7e
api!:jsonrpc: sort reactions in descending order ( #4388 )
...
convert `JSONRPCReactions.reactions` to a `Vec<JSONRPCReaction>` with unique reactions and their count, sorted in descending order.
---------
Co-authored-by: link2xt <link2xt@testrun.org >
2023-05-11 08:29:43 -04:00
Simon Laux
aa212b2b7e
jsonrpc: MessageSearchResult, always include chat_name(not an option anymore), also add author_id and chat_type ( #4374 )
...
* jsonrpc: `MessageSearchResult`, always include `chat_name`(not an option anymore), also add `author_id` and `chat_type`
* replace .ok_or_else with anyhow context
2023-05-09 10:22:32 +00:00
Simon Laux
a0c51b3c3a
fix: jsonrpc: typescript client: fix types of events in event emitter ( #4373 )
...
* fix: jsonrpc: typescript client: fix types of events in event emitter
* add ts ignore to remove ts error (when building in ts5)
doing the types right via casting is to complicated IMO and has no real benefit here.
2023-05-09 09:57:49 +00:00