Alexander Krotov
d6b30c9703
Fix python test for ephemeral timer
2020-07-01 09:32:08 +03:00
Alexander Krotov
7a7dcc8b8f
constants.rs: remove unused DC_STR_* constants
...
They are also outdated.
2020-07-01 07:55:22 +03:00
Alexander Krotov
d79c918c9e
Replace 1 with DC_CONTACT_ID_SELF
2020-07-01 00:59:07 +03:00
Alexander Krotov
56518420bc
Add get_marker method to dc_array_t
2020-06-30 01:21:18 +03:00
Alexander Krotov
615a76f35e
Add timestamp to DayMarker
...
With this change, API user does not need to look at the timestamp of
the next message to display the day marker, but can get the timestamp
directly from the marker. This way there is no database query and no
risk of error as a result of database being busy or message being deleted.
2020-06-30 01:21:18 +03:00
Alexander Krotov
0c47489a3b
Use ephemeral::Timer in MsgId.ephemeral_timer() method
2020-06-29 23:04:34 +03:00
Alexander Krotov
f931a905a7
Remove useless comment
2020-06-29 23:04:34 +03:00
Alexander Krotov
7d048ac419
Add autodelete timers
2020-06-29 23:04:34 +03:00
Alexander Krotov
41fe3db79d
Add ChatItem type
...
ChatItem can represent markers as enum variants instead of special MsgIds.
2020-06-29 00:30:17 +03:00
Alexander Krotov
42f6a7c77c
Remove dc_array_get_raw
...
It does not work with typed arrays, such as locations and messages.
Use dc_array_get_id in a loop instead.
2020-06-26 01:22:10 +03:00
Alexander Krotov
09833eb74d
dc_array: introduce MsgIds variant
...
This avoids allocation of u32 vector.
2020-06-26 01:22:10 +03:00
Alexander Krotov
2c11df46a7
dc_array: remove unnecessary "as u32" cast
2020-06-26 01:22:10 +03:00
Alexander Krotov
443ad04f46
Mark all dc_array method as pub(crate)
...
This make it easier to find unused methods.
2020-06-26 01:22:10 +03:00
Alexander Krotov
f2d09cc51e
dc_array: simplify and test search_id
...
This also makes it possible to search for location IDs.
2020-06-26 01:22:10 +03:00
Alexander Krotov
83dde57afa
Remove unused dc_array methods
2020-06-26 01:22:10 +03:00
Alexander Krotov
fdacf98b69
handle_mdn: compare from_id to DC_CONTACT_ID_LAST_SPECIAL
...
DC_MSG_ID_LAST_SPECIAL has the same value, but from_id is not a msg id.
2020-06-26 01:11:15 +03:00
bjoern
9152f93a46
Merge pull request #1668 from deltachat/add-sanitise-tests
...
add more tests for BlobObject::sanitise_name()
2020-06-23 19:04:51 +02:00
bjoern
6a4b6fddac
Merge pull request #1659 from deltachat/prep-1.39
...
prepare 1.39
1.39.0
2020-06-23 19:01:36 +02:00
B. Petersen
e3c90aff22
add more tests for BlobObject::sanitise_name()
2020-06-23 18:51:40 +02:00
B. Petersen
b7464f7a5c
bump version to 1.39
2020-06-23 18:41:45 +02:00
B. Petersen
53128cc64b
update changelog for 1.39 and fix the one for 1.36
2020-06-23 18:41:45 +02:00
bjoern
ccf8eeacd6
Merge pull request #1667 from deltachat/revert-1664-sanitize-filename-reader-friendly
...
Revert "Switch to sanitize-filename-reader-friendly"
2020-06-23 18:40:40 +02:00
bjoern
aeb8a2e260
Revert "Switch to sanitize-filename-reader-friendly"
...
This reverts commit 93797bc82f .
2020-06-23 18:11:18 +02:00
Alexander Krotov
93797bc82f
Switch to sanitize-filename-reader-friendly
...
One advantage is that it does not depend on any crates, so there is a
higher chance of dropping regex crate eventually.
2020-06-23 14:37:35 +03:00
holger krekel
07236efc45
fix bcc_self to remain "0" for testrun/fivechat test accounts
2020-06-23 08:06:32 +02:00
B. Petersen
0fbddc939b
update provider-db
2020-06-23 08:06:32 +02:00
Alexander Krotov
a031151587
Fix two +nightly clippy suggestions
2020-06-23 03:17:07 +03:00
B. Petersen
545ff4f7ba
apply config_defaults only for unset values
...
instead of applying all config_defaults unconditionally
after the first configure, a config_defaults for a given key
is now applied when this key has never been set before.
this way, you can set some keys before calling configure()
and also, later versions can add new defaults for new keys
(that would require another call to configure() then, however)
2020-06-23 00:48:40 +02:00
B. Petersen
73e695537a
add missing doc for bcc_self
2020-06-22 22:49:26 +02:00
B. Petersen
16e3c113b7
update ffi docs; avatar is sent with messages since end 2019
2020-06-22 22:49:26 +02:00
bjoern
88d7bf49ff
Merge pull request #1658 from deltachat/remove-config-changes-interrupt
...
remove config changes interrupt
2020-06-22 14:18:48 +02:00
B. Petersen
74ea884aa4
remove now superfluous interrupting on watch-settings-changes
2020-06-22 13:48:33 +02:00
B. Petersen
16c53637d9
update docs to new watch-settings behavior
2020-06-22 13:47:47 +02:00
Friedel Ziegelmayer
f63f0550b0
Merge pull request #1654 from deltachat/fix-move-loops
...
fix(scheduler): only start watch loops if the appropriate config is set
2020-06-22 12:51:43 +02:00
Friedel Ziegelmayer
530503932b
Merge pull request #1655 from deltachat/feat-update-deps
...
feat: update deps
2020-06-22 12:23:26 +02:00
Friedel Ziegelmayer
d2dc4edd82
Merge pull request #1657 from deltachat/fix-move-loops-inbox
...
perform jobs also if inbox_watch disabled
2020-06-22 12:23:10 +02:00
Alexander Krotov
8de1bc6cbd
sql: fix potential panic in maybe_add_file
...
When maybe_add_file was called with "$BLOBDIR" it tried to remove 9
bytes from the string, while it only contains 8.
2020-06-22 13:22:37 +03:00
B. Petersen
76e39bfa7c
this pr creates the inbox_loop inpendendingly of inbox_watch config-setting as the loop is also required to perform jobs. the config-setting is checked inside the loop then
2020-06-22 12:00:25 +02:00
Alexander Krotov
cf09942737
deltachat-ffi: use as_deref() as suggested by clippy
2020-06-22 12:37:29 +03:00
dignifiedquire
6fe1f01c5f
feat: update deps
...
includes async-std@1.6.2 and smol@0.1.18 which fix various hangs and possible deadlocks
2020-06-22 10:04:10 +02:00
dignifiedquire
f880d6188b
fix(scheduler): only start watch loops if the appropriate config is set
2020-06-22 10:00:50 +02:00
bjoern
22c62ea6af
Merge pull request #1649 from deltachat/freepascal
...
README: add link to Free Pascal bindings
2020-06-21 21:52:51 +02:00
Alexander Krotov
e3af3a24a8
README: add link to Free Pascal bindings
2020-06-21 20:14:30 +03:00
Alexander Krotov
7bfadb14ea
Fix a typo (prover -> provider)
2020-06-21 20:13:06 +03:00
bjoern
75d20b899a
Merge pull request #1646 from deltachat/prep-1.38
...
prepare 1.38
2020-06-21 12:12:02 +02:00
B. Petersen
31a5811241
bump version to 1.38
1.38.0
2020-06-20 19:16:07 +02:00
B. Petersen
cd1f5bf229
update changelog for 1.38
2020-06-20 19:09:33 +02:00
bjoern
632fc19f41
Merge pull request #1645 from deltachat/correct-seen
...
give correct "fresh" flag to calc_sort_timestamp()
2020-06-20 19:05:34 +02:00
B. Petersen
7ad95ea165
give correct "fresh" flag to calc_sort_timestamp()
...
for "fresh" messages, calc_sort_timestamp() makes sure,
the sorting timestamp is not less than the last-non-fresh message.
this commit fixes the "fresh" state we give to calc_sort_timestamp(),
it just uses the message-state we've already calculated.
the old assumption, that unseen messages are always fresh
is wrong as this "seen" flag just comes from an imap-flag
that is not set for self-sent messages.
therefore, in a multi-device-setup, things are totally messed up.
(the bug was probably in there since a long time,
however did not came to light until the async-move)
2020-06-20 18:36:09 +02:00
Floris Bruynooghe
9d7b756ddb
Unify some testing interfaces
...
This tidies up our testing tools a little bit. We had several
functions which through various changes ended up doing the same and
some more which did very similar stuff, so I merged them to have
things simpler. Also moved towards methods on the TestContext struct
while cleaning this up anyway, seems like this structure is going to
stay around for a bit anyway.
The intersting change is in `test_utils.rs`, everything else is just
updating callers. A few tests used example.org which I moved to
example.com to be able to re-use more configuration of the test
context.
2020-06-20 14:37:41 +02:00