link2xt
5c571520a0
contact: use last_seen column
...
It was there since the C core, labeled with "/* last_seen is for
future use */" but never actually used. The comment was lost during
the translation from C to Rust.
2021-11-21 21:14:17 +03:00
link2xt
ddefd2cf09
python: add cutil.from_optional_dc_charpointer()
...
`cutil.from_dc_charpointer()` is guaranteed to return `str`, while
`cutil.from_optional_dc_charpointer()` may return `None` if C function
returns `NULL`.
2021-11-21 20:00:29 +03:00
dependabot[bot]
30a3eeece8
cargo: bump strum_macros from 0.22.0 to 0.23.0
...
Bumps [strum_macros](https://github.com/Peternator7/strum ) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum_macros
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-20 12:20:36 +01:00
dependabot[bot]
5919388588
cargo: bump libc from 0.2.106 to 0.2.107
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.106 to 0.2.107.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.106...0.2.107 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-20 12:16:18 +01:00
dependabot[bot]
2cc738f481
cargo: bump strum from 0.22.0 to 0.23.0
...
Bumps [strum](https://github.com/Peternator7/strum ) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-20 11:44:57 +01:00
dependabot[bot]
babd405928
cargo: bump serde_json from 1.0.69 to 1.0.71
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.69 to 1.0.71.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.69...v1.0.71 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-20 11:44:21 +01:00
link2xt
e885857875
Remove pretty_assertions dependency
...
It was only used in two places. Rather than adding `use
pretty_assertions::*` everywhere, it's easier to remove, and it
removes two additional dependency crates.
2021-11-20 11:42:52 +01:00
link2xt
a1d57a2645
Disable unnecessary proptest features
2021-11-20 11:42:52 +01:00
link2xt
a28aecd4d1
Update sqlite dependencies
2021-11-20 11:42:52 +01:00
link2xt
a3f1ff2827
Disable xattr feature on async-tar
...
This removes `xattr` dependency
We only care about backed up file contents, not attributes.
2021-11-20 11:42:52 +01:00
link2xt
c4d1a639b0
Remove itertools dependency
...
Collecting into Vec of &str and joining may even be faster according
to benchmarks:
https://gist.github.com/green-s/fbd0d374b290781ac9b3f8ff03e3245d
2021-11-20 11:42:52 +01:00
dependabot[bot]
8732b7a55c
cargo: bump anyhow from 1.0.45 to 1.0.47
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.45 to 1.0.47.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.45...1.0.47 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-20 11:42:34 +01:00
Hocuri
1b9148f28e
Add section comments to get_connectivity_html() ( #2807 )
2021-11-18 10:13:47 +01:00
Hocuri
e0129c3b43
Don't set draft after creating group ( #2805 )
...
* Don't set draft after creating group
* Remove DC_STR_NEWGROUPDRAFT, add note to Changelog
* Fix the (Rust) test
* Also fix python test
2021-11-16 10:44:30 +01:00
link2xt
60d41022ea
scripts: switch from python 3.6 to python 3.7
...
PEP 562 (__getattr__ in deltachat.const module) is implemented only since python 3.7
2021-11-14 00:00:00 +00:00
bjoern
dd4f2ac671
prepare 1.65 ( #2812 )
...
* update changelog for 1.65.0
* bump version to 1.65.0
py-1.65.0
1.65.0
2021-11-15 14:51:28 +01:00
bjoern
eebb2a3b68
do not assume 'no ephemeral timer' on partial downloads ( #2811 )
...
* do not assume 'no ephemeral timer' on partial downloads
* add a test to check that ephemeral timers are not disabled on partial downloads
2021-11-15 11:45:06 +01:00
link2xt
0d62069b67
python: add mypy support and some type hints
...
`deltachat.const` module now defines `__getattr__` and `__dir__` as
suggested by https://www.python.org/dev/peps/pep-0562/
mypy detects that `__getattr__` is defined and does not show errors
for `DC_*` constants which cannot be detected statically.
mypy is added to `tox.ini`, so type check can be run with `tox -e mypy`.
2021-11-14 11:06:44 +03:00
link2xt
56cf2e6596
Replace error! on verification failure with warn!
...
A message is added into 1:1 chat anyway, and user does not know what `StockMessage::ContactNotVerified` means.
2021-11-14 02:02:23 +03:00
Simon Laux
59bd5481b9
fix 1.61.0 changelog ( #2806 )
2021-11-13 22:06:29 +01:00
Hocuri
6c8da526a0
Fix: Only show the "Cannot login" device message if it's actually authentication that failed ( #2804 )
...
Generally we could also just remove the device message as we have the
connectivity view, OTOH if you are not using DC a lot, it may be useful
to be notified without opening DC.
And apart from this one bug it's working fine.
2021-11-13 19:20:01 +01:00
link2xt
13bc8b78d7
python: enable isolated build in tox.ini
...
This makes tox install build system configured in pyproject.toml
according to PEP 518 rather than assuming setuptools.
2021-11-13 03:45:58 +00:00
link2xt
c7c68094d9
setup.py: restore compatibility with setup.py sdist command
...
Otherwise source package with version 0.0.0 is created.
2021-11-12 23:41:17 +00:00
bjoern
84f54b10dc
prepare 1.64 ( #2802 )
...
* update changelog for 1.64
* bump version to 1.64.0
py-1.64.0
1.64.0
2021-11-11 16:45:30 +01:00
bjoern
cebc9e3e91
add 'waiting for being added to the group' only for group-joins ( #2797 )
...
* add 'waiting for being added to the group' only for group-joins, not for setup-contact
* add a comment why the message is not added on setup-contact
2021-11-07 20:30:55 +01:00
link2xt
1379f8a055
Factor apply_group_changes out of create_or_lookup_group
...
`apply_group_changes` is executed regardless of whether the group is
created via `create_or_lookup_group` or found via
`lookup_chat_by_reply`. This change removes the need for
`lookup_chat_by_reply` to return `None` when group ID exists in the
database to let `create_or_lookup_group` run. As a side effect of this
Delta Chat replies to ad hoc groups are now correctly assigned to
chats when there are multiple groups with the same group ID, such as
ad hoc groups with the same member lists.
2021-11-07 18:34:44 +03:00
bjoern
53d049e5f5
prepare 1.63 ( #2796 )
...
* update changelog for 1.63
* bump version to 1.63.0
1.63.0
py-1.63.0
2021-11-06 21:00:54 +01:00
bjoern
4968f72dfb
fix permanently hiding of one-to-one chats after secure-join ( #2791 )
...
* test one-to-one chats on setup-contact/secure-join
only one chat is created after scanning a QR code:
- on setup-contact, one-to-ones are created on both sided
- on secure-join, the joined group chat is created;
one-to-ones are not created intitally,
but should become visible on receiving messages
* make sure, Alice creates the chat with Bob on setup-contact
not totally sure if that change in #2508 was on-purpose,
however, all yet released versions
did create the one-to-one chat also on the Inviter's (Alice) side,
so, let's stay with that,
i do not see many reasons to change that.
* unblock hidden (Blocked::Yes) one-to-one chats
one-to-one chats may be hidden by secure-join,
in case someone later writes a message to it
(not unlikely), the chat needs to be shown.
before, messages are just not shown,
the corresponding chat did not appear.
the 'Blocked' wording of a 'Chat' must not be mixed with the
'Blocking' of a contact. 'Chat-Blocking' is mostly a visibility thing,
that may change as messages come in.
this change should not affect _really_ blocked contacts -
they are filtered out already before
and their messages are usually not even downloaded.
also, before allow_creation is checked,
that may disallow chat creation for show_emails reasons.
all in all, it just does the same
as if the user has manualy deleted the chat before and it would be created.
* simplify test
2021-11-06 18:46:10 +01:00
dependabot[bot]
b24a0ed8fd
Merge pull request #2794 from deltachat/dependabot/cargo/serde_json-1.0.69
2021-11-05 23:29:32 +00:00
dependabot[bot]
c810347c7c
cargo: bump serde_json from 1.0.68 to 1.0.69
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.68 to 1.0.69.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.68...v1.0.69 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-05 21:13:20 +00:00
dependabot[bot]
cf8c4142c7
Merge pull request #2784 from deltachat/dependabot/cargo/libc-0.2.106
2021-11-05 19:35:21 +00:00
dependabot[bot]
f71901b5f9
Merge pull request #2786 from deltachat/dependabot/cargo/backtrace-0.3.63
2021-11-05 19:33:54 +00:00
dependabot[bot]
4419f9c4e7
Merge pull request #2789 from deltachat/dependabot/cargo/anyhow-1.0.45
2021-11-05 19:33:02 +00:00
dependabot[bot]
4e5982b682
cargo: bump anyhow from 1.0.44 to 1.0.45
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.44 to 1.0.45.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.44...1.0.45 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-02 21:14:41 +00:00
bjoern
39e1510e64
add dc_get_last_error() ( #2788 )
...
* add dc_get_last_error()
* make clippy happy
* simplify block_on() call
2021-11-02 22:09:04 +01:00
dependabot[bot]
64206160cc
Merge pull request #2785 from deltachat/dependabot/cargo/surf-2.3.2
2021-11-01 22:56:28 +00:00
dependabot[bot]
6376659348
cargo: bump backtrace from 0.3.62 to 0.3.63
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.62 to 0.3.63.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.62...0.3.63 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-01 21:17:04 +00:00
dependabot[bot]
43b2a4ad27
cargo: bump surf from 2.3.1 to 2.3.2
...
Bumps [surf](https://github.com/http-rs/surf ) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/http-rs/surf/releases )
- [Changelog](https://github.com/http-rs/surf/blob/main/CHANGELOG.md )
- [Commits](https://github.com/http-rs/surf/compare/v2.3.1...v2.3.2 )
---
updated-dependencies:
- dependency-name: surf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-01 21:16:52 +00:00
dependabot[bot]
eaf06bb239
cargo: bump libc from 0.2.105 to 0.2.106
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.105 to 0.2.106.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.105...0.2.106 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-01 21:16:34 +00:00
link2xt
5e26b5bfdc
Merge pull request #2743 from deltachat/improve-gossip
...
Optimize Autocrypt gossip
2021-11-01 02:01:51 +03:00
link2xt
60fbb6df5a
Add python test for gossip optimization
2021-10-31 22:39:05 +00:00
link2xt
3e60ee9d3e
python: use datetime.fromtimestamp() instead of datetime.utcfromtimestamp()
...
utcfromtimestamp() is not recommended by the official documentation,
because many methods, including timestamp(), work incorrectly with
"naive" datetimes returned by utcfromtimestamp().
2021-10-31 22:39:05 +00:00
link2xt
54e79409e6
Optimize Autocrypt gossip
...
Update gossiped_timestamp when someone else sends autocrypt gossip in
the group, so we postpone sending gossip again ourselves.
- Warn about failures to parse Autocrypt-Gossip header
- Move gossip-related methods into ChatId impl
- Fix a "gossi_pp_ed" typo
2021-11-01 01:17:51 +03:00
bjoern
31d113207b
prepare 1.62 ( #2769 )
...
* update changelog for 1.62
* bump version to 1.62.0
py-1.62.0
1.62.0
2021-10-31 12:42:53 +01:00
link2xt
3a014477e7
Fix dc_truncate proptest ( #2781 )
...
It was failing for approx_chars = 0.
Also reduce approx_chars range so approx_chars = 0 is tested more frequently.
2021-10-31 11:44:15 +01:00
link2xt
90d8c8baf5
Only apply ephemeral timers to non-special chats
2021-10-31 02:19:27 +03:00
link2xt
1dee17f980
Resultify dc_receive_imf::save_locations()
2021-10-31 02:19:27 +03:00
link2xt
6aeb21d3af
dc_receive_imf: do not ignore lookup_by_contact errors
2021-10-31 02:19:27 +03:00
link2xt
4747ae2f1c
Make is_dc_message and allow_creation immutable
2021-10-31 02:19:27 +03:00
link2xt
7968f55191
Trash messages instead of hiding them
2021-10-31 02:19:27 +03:00