Simon Laux
ea1a962992
jsonrpc: add Context class you can get via getContext or getContextEvents,
...
it is a convenience wrapper that has all account specific functions with the accountId pre-set.
2022-10-25 23:54:05 +02:00
bjoern
d8bc3769a5
allow searching for unaccepted requests ( #3694 )
...
* let search_msgs() return unaccepted requests
unaccepted chat requests are shown in the chatlist,
it should be returned by search_msgs() an by the other search functions as well.
form the view of the user, the search acts like a filter,
so there is no reason to hide things additionally.
also, the user may remember a word in a chat request,
maybe even an archived one (there is no need to accept a request before archiving)
that one wants to search later on.
* test searching for unaccepted requests
* simplyfy expression; `c.blocked!=1` is also what is used in similar statements
2022-10-25 22:22:31 +02:00
Floris Bruynooghe
a73fbf7232
Update textwrap dependency
...
The current version is unsatisfyable if you use deltachat as a
dependency itself.
2022-10-24 22:09:41 +02:00
link2xt
b6b2f453a0
Prepare 1.98.0
py-1.98.0
1.98.0
2022-10-24 16:09:24 +00:00
link2xt
aa14015919
sql: every Result is anyhow::Result
2022-10-23 11:25:27 +00:00
Simon Laux
7551c84c4f
jsonrpc: move qr/uri type to dedicated file ( #3687 )
...
#skip-changelog
2022-10-23 08:41:32 +00:00
link2xt
434e53e922
Use UPSERT to insert into msgs table
...
This way no temporary rows are created and it is easier to maintain
because UPDATE statement is right below the INSERT statement,
unlike `merge_messages` function which is easy to forget about.
2022-10-22 21:34:56 +00:00
link2xt
b5d238f7f4
Keep reactions when downloading partially downloaded message
2022-10-22 15:02:05 +00:00
link2xt
e5c9fea52d
Implement reactions
...
Co-Authored-By: bjoern <r10s@b44t.com >
Co-Authored-By: Simon Laux <mobile.info@simonlaux.de >
2022-10-22 09:59:43 +00:00
Simon Laux
cd15a0e966
jsonrpc: typescript client: export constants under C enum, similar to how its exported from deltachat-node ( #3681 )
...
* jsonrpc: typescript client: export constants
under `C` enum,
similar to how its exported from `deltachat-node`
* add pr number to changelog
* fix tests
* fix changelog entry position
2022-10-21 17:51:38 +00:00
dependabot[bot]
895c723d4e
Merge pull request #3626 from deltachat/dependabot/cargo/trust-dns-resolver-0.22.0
2022-10-18 09:41:10 +00:00
dependabot[bot]
c7176d6bc8
Merge pull request #3628 from deltachat/dependabot/cargo/percent-encoding-2.2.0
2022-10-18 09:29:54 +00:00
link2xt
b2939d3df3
imap: simplify UPSERT queries on imap_sync
...
Use `excluded` and remove noop `WHERE` query.
See <https://www.sqlite.org/lang_UPSERT.html > for official SQLite documentation.
2022-10-16 16:34:13 +00:00
link2xt
54a157a629
Prepare 1.97.0 release ( #3668 )
py-1.97.0
1.97.0
2022-10-16 15:08:55 +02:00
Simon Laux
427adefb42
jsonrpc: add miscGetStickerFolder and miscGetStickers ( #3672 )
...
* jsonrpc: add `miscGetStickerFolder` and `miscGetStickers`
* add pr number to changelog
* refactor
* fix clippy
2022-10-16 14:53:06 +02:00
link2xt
f0dede26a3
cargo fmt
2022-10-16 11:30:01 +00:00
Simon Laux
36f85a6a5a
fix nodejs jsonrpc smoke tests ( #3674 )
...
the solution was to ignore events
2022-10-15 23:03:54 +02:00
Simon Laux
137567554d
set timeout for node ci tests to 10min ( #3675 )
...
* set timeout for node ci tests to 10min
set timeout for node ci tests to 10min for the test step,
macOS takes 12min for the whole workflow with cached core build,
so 10min just for the test step should be plenty.
* don't forget to set the limit on windows, too
2022-10-15 22:58:48 +02:00
Simon Laux
72941e51fc
exit node test when it failed ( #3673 )
2022-10-15 22:23:58 +02:00
Simon Laux
836c016f97
jsonrpc: add getMessageHtml ( #3671 )
...
* add getMessageHtml function
* add changelog entry
2022-10-15 20:47:31 +02:00
Simon Laux
e8ea9b7127
jsonrpc/events: commit type I forgot to commit ( #3670 )
...
commit line I forgot to commit
2022-10-15 20:35:30 +02:00
link2xt
f80c78536f
fix unused result error
2022-10-15 13:11:53 +00:00
Hocuri
7877187894
Join all migration messages into one ( #3665 )
2022-10-15 07:06:40 +00:00
Simon Laux
a384a57979
cffi:jsonrpc: send events ( #3662 )
...
* jsonrpc in cffi also sends events now
* add pr id to changelog
* jsonrpc: new format for events and better typescript autocompletion (#3663 )
* jsonrpc: new format for events and better typescript autocompletion
* adjust doc comments
2022-10-14 22:46:43 +00:00
Simon Laux
86e1476dee
jsonrpc: add viewType to quoted message(MessageQuote type) in Message object type ( #3651 )
...
* jsonrpc: add `viewType` to quoted message(`MessageQuote` type) in `Message` object type
* add pr number to changelog
2022-10-13 15:41:54 +00:00
Jikstra
81d0ecd8f6
jsonrpc: more methods and some fixes ( #3653 )
...
* jsonrpc: Implement join_securejoin(), contacts_delete(),
contacts_change_name(), send_sticker()
* Add missing fn
* cargo fmt
* add missing &self
* Make it compile
* fixup return type, clippy and doc comment
* generate types and add 2 functions
* change naming
* changelog entry
* jsonrpc add start and stop io functions
* fix getMessageListItems
* normalize daymarker timestamps for MessageListItem
* jsonrpc: exportBackup and importBackup
* don't multiply timestamp anymore
* update types.ts
Co-authored-by: Simon Laux <mobile.info@simonlaux.de >
2022-10-13 12:56:10 +02:00
link2xt
6f329c9e96
Fix unix timestamp used for daymarker
2022-10-12 18:38:03 +00:00
Hocuri
0e2445c7a0
Move the actual logic of email parsing to EmailAddress::new() ( #3656 )
...
Very small PR; Motivation: Easier navigation using Go-To-definition.
Because, using go-to-definition of rust-analyzer on parse() doesn't take you to the actual parse() implementation but its trait definiton. On the other hand, it's very easy to find EmailAddress::new().
2022-10-12 20:37:17 +02:00
Hocuri
7ed947f598
Remove forgotten dbg!
2022-10-12 10:49:34 +02:00
link2xt
b85f6ea6c3
contact: do not ignore SQL errors in add_or_lookup
2022-10-11 16:42:17 +00:00
dependabot[bot]
f85f088d65
cargo: bump percent-encoding from 2.1.0 to 2.2.0
...
Bumps [percent-encoding](https://github.com/servo/rust-url ) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/percent-encoding-v2.1.0...v2.2.0 )
---
updated-dependencies:
- dependency-name: percent-encoding
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 12:33:13 +00:00
dependabot[bot]
045472deac
Merge pull request #3625 from deltachat/dependabot/cargo/tokio-stream-0.1.10
2022-10-11 12:15:16 +00:00
dependabot[bot]
71cad4df58
Merge pull request #3632 from deltachat/dependabot/cargo/tokio-1.21.2
2022-10-11 12:13:52 +00:00
dependabot[bot]
48786522c8
Merge pull request #3622 from deltachat/dependabot/cargo/thiserror-1.0.37
2022-10-11 10:46:18 +00:00
dependabot[bot]
0827f1b2f6
cargo: bump tokio-stream from 0.1.9 to 0.1.10
...
Bumps [tokio-stream](https://github.com/tokio-rs/tokio ) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.9...tokio-stream-0.1.10 )
---
updated-dependencies:
- dependency-name: tokio-stream
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 08:16:26 +00:00
dependabot[bot]
5973bb8610
cargo: bump thiserror from 1.0.33 to 1.0.37
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.33 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.33...1.0.37 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 08:16:17 +00:00
dependabot[bot]
00ca5132b4
cargo: bump tokio from 1.20.1 to 1.21.2
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.20.1 to 1.21.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.20.1...tokio-1.21.2 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 08:16:16 +00:00
dependabot[bot]
191d203b24
Merge pull request #3623 from deltachat/dependabot/cargo/serde-1.0.145
2022-10-11 08:14:15 +00:00
dependabot[bot]
06f96011d8
Merge pull request #3635 from deltachat/dependabot/cargo/textwrap-0.15.1
2022-10-11 08:13:26 +00:00
dependabot[bot]
f2e292c702
Merge pull request #3654 from deltachat/dependabot/cargo/syn-1.0.102
2022-10-11 08:13:09 +00:00
dependabot[bot]
832deb8e97
Merge pull request #3631 from deltachat/dependabot/cargo/once_cell-1.15.0
2022-10-11 08:12:48 +00:00
dependabot[bot]
74a3c57222
cargo: bump syn from 1.0.99 to 1.0.102
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.99 to 1.0.102.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.99...1.0.102 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 05:40:18 +00:00
dependabot[bot]
4a19092db0
Merge pull request #3636 from deltachat/dependabot/cargo/axum-0.5.16
2022-10-11 05:38:48 +00:00
dependabot[bot]
5c652d913a
cargo: bump serde from 1.0.144 to 1.0.145
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.144 to 1.0.145.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:13:33 +00:00
dependabot[bot]
053213f50e
cargo: bump axum from 0.5.15 to 0.5.16
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.5.15 to 0.5.16.
- [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.5.15...axum-v0.5.16 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:13:03 +00:00
dependabot[bot]
342e946f49
Merge pull request #3634 from deltachat/dependabot/cargo/sha2-0.10.6
2022-10-11 01:12:07 +00:00
dependabot[bot]
d15ab1355b
cargo: bump once_cell from 1.13.1 to 1.15.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.1 to 1.15.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.1...v1.15.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:11:41 +00:00
dependabot[bot]
e47f4b8f80
Merge pull request #3600 from deltachat/dependabot/cargo/axum-core-0.2.8
2022-10-11 01:11:33 +00:00
dependabot[bot]
637a4eb351
cargo: bump textwrap from 0.15.0 to 0.15.1
...
Bumps [textwrap](https://github.com/mgeisler/textwrap ) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/mgeisler/textwrap/releases )
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mgeisler/textwrap/compare/0.15.0...0.15.1 )
---
updated-dependencies:
- dependency-name: textwrap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-11 01:11:25 +00:00
dependabot[bot]
a233aeec4a
Merge pull request #3633 from deltachat/dependabot/cargo/image-0.24.4
2022-10-11 01:11:08 +00:00