Alexander Krotov
8c82a5cbfa
prepare_msg_raw: do not set GuaranteeE2ee
...
This code is inconsistent with EncryptHelper::should_encrypt, which uses
quorum rule.
UI does not display or use encryption state in-between preparing and
sending message anyway.
In addition, "sticky encryption" rule, which required all replies to
encrypted messages to be encrypted, is dropped. It is going to be
restored with the introduction of quoting.
2020-10-10 12:41:43 +03:00
Alexander Krotov
25274f13c3
cargo fmt
...
Also formatted SQL query, because rustfmt can't format statements with
too long strings.
2020-10-10 12:41:43 +03:00
Alexander Krotov
093839c2b0
prepare_msg_raw: replace large if with early exit
2020-10-10 12:41:43 +03:00
B. Petersen
4c8e6ef495
use combined index (state, hidden, chat_id) to speed up marknoticed_chat()
2020-10-10 00:32:45 +02:00
René Rössler
2fe600f885
Merge pull request #1971 from deltachat/accessible-msg-error
...
Accessible msg error and type changes
2020-10-08 12:54:20 +02:00
René Rössler
9739c0305b
Accessible msg error and type changes
2020-10-08 11:51:04 +02:00
bjoern
893e4b91ba
Merge pull request #1970 from deltachat/push_unconditional
...
if we merge to master, we always upload -- before if a flaky functional test failed it would prevent uploading of docs and wheels.
2020-10-07 15:03:02 +02:00
holger krekel
5cb1d10401
if we merge to master, we always upload -- before if a flaky functional test failed it would prevent uploading of docs and wheels.
2020-10-07 14:45:23 +02:00
B. Petersen
11107d5484
add comment about unused 'starred' column
2020-10-06 09:32:50 +02:00
B. Petersen
5405bfbc8d
remove unused types "starred" and "in-creation"
...
both are not used in productive:
- chat-id "in-creation" was dropped completely already in core-c
as it does not allow assigning messages to chats in time.
- message flag "starred" was added at some point and never used.
ux-wise, "disappearing messages" promises to clean up a chat -
this does not fit well with "starring" messages.
"saved messages" chat seems to be superior in that regard.
but anyway, it is not used but comes at maintainance costs,
so it is better to delete its functionality for now.
(the db entries, however, are left for now,
that might be more tricky to remove)
2020-10-06 09:32:50 +02:00
Alexander Krotov
a0c92753a9
prepare_msg: return Err if no address is configured
...
Address is used to generate Message-Id.
Previously error toast was shown, but MsgId was returned from
chat::prepare_msg anyway. Now chat::prepare_msg returns an error.
error!() is removed, because FFI library shows errors via
.unwrap_or_log_default().
2020-10-05 10:37:21 +03:00
Alexander Krotov
de97e0263f
ffi: add missing "ignoring careless call" warnings
2020-10-05 08:57:52 +02:00
Hocuri
44558d0ce8
Revert "Export to the new backup format ( #1952 )" ( #1958 )
...
This reverts commit 1fdb697c09 .
because Desktop never had a release with tar-import
2020-10-02 15:34:22 +02:00
Alexander Krotov
be40417a7f
sql: do not set dbversion after each migration
...
This variable is not used afterwards, and it is already not set in
migrations added after version 54.
2020-10-02 16:20:39 +03:00
Alexander Krotov
8301e27f86
dc_get_info: accept immutable context
2020-10-02 16:20:32 +03:00
Alexander Krotov
21b18836ca
test_configure_error_msgs: do not check for "password" repetition
...
When run against host that is not in the provider database or has multiple
IMAP servers listed, this test fails because one error is returned for
each server.
2020-10-02 14:28:10 +03:00
Hocuri
2e3352afca
fix #1953 by cargo update (esp. update async-io to 1.1.6)
2020-10-02 12:39:27 +02:00
Alexander Krotov
9667859410
deltachat.h: fix a typo
2020-10-02 03:33:04 +03:00
Alexander Krotov
b437ab86d1
Fix a typo: "probram"
2020-10-02 03:24:24 +03:00
Hocuri
1fdb697c09
Export to the new backup format ( #1952 )
2020-10-01 19:25:02 +02:00
Jikstra
7200e62375
Mention in dc_event_get_data2_str method that it can also return 0 ( #1955 )
...
* Mention in dc_event_get_data2_str method that it can also return 0
* Update deltachat-ffi/deltachat.h
Co-authored-by: bjoern <r10s@b44t.com >
Co-authored-by: bjoern <r10s@b44t.com >
2020-10-01 13:37:04 +02:00
Friedel Ziegelmayer
7ddf3ba754
Merge pull request #1950 from deltachat/update-async-std
...
update async-std to 1.6.5
2020-09-29 14:00:33 +02:00
Friedel Ziegelmayer
7786a4ced4
fix: avoid manual poll impl for accounts events
2020-09-29 14:00:10 +02:00
dignifiedquire
c649db15b6
update async-std to 1.6.5
...
making sure latest bug fixes are in
2020-09-28 21:40:49 +02:00
Alexander Krotov
60a8b47ad0
e2ee: require quorum to enable encryption
...
Previously, standard Autocrypt rule was used to determine whether
encryption is enabled: if at least one recipient does not prefer
encryption, encryption is disabled.
This rule has been problematic in large groups, because the larger
is the group, the higher is the chance that one of the users does not
prefer encryption.
New rule requires a majority of users to prefer encryption. Note that it
does not affect 1:1 chats, because it is required that *strictly* more
than a half users in a chat prefer encryption.
2020-09-27 23:38:06 +03:00
Alexander Krotov
0344bc387c
Add encryption preference test
2020-09-27 23:38:06 +03:00
bjoern
0f1798ae50
Merge pull request #1948 from deltachat/clarify-str-unref
...
clarify dc_str_unref()
2020-09-26 23:12:24 +02:00
Hocuri
02baf4b1f0
Show some inner errors (do not hide them with .context) ( #1916 )
2020-09-26 22:48:47 +02:00
B. Petersen
9fb2c59b6e
clarify dc_str_unref()
2020-09-26 18:01:41 +02:00
Alexander Krotov
9121e30600
param: escape newlines in values
...
Newlines are escaped by repeating them.
This encoding is compatible to existing values, because they do not
contain newlines.
2020-09-26 07:01:39 +03:00
bjoern
39d8cffe18
Merge pull request #1943 from deltachat/fix-doxygen-warnings
...
fix doxygen warnings
2020-09-26 01:36:07 +02:00
B. Petersen
9486c67904
remove obsolete TCL_SUBST from Doxyfile
...
fix warnings as
Tag 'TCL_SUBST' at line N of file 'Doxyfile' has become obsolete.
2020-09-25 23:27:20 +02:00
B. Petersen
29c4bbab2b
do not use '@return' on void functions
...
partly, we wrote '@return None.' for void functions,
however, some linter complain about that (recently swift)
and they're right, it does not make much sense.
2020-09-25 23:27:20 +02:00
bjoern
9a80385278
Merge pull request #1942 from deltachat/add-msgs-seen-event
...
split DC_EVENT_MSGS_NOTICED off DC_EVENT_MSGS_CHANGED, remove dc_marknoticed_all_chats()
2020-09-25 21:41:10 +02:00
B. Petersen
f0fb1bfdcb
make clippy happy
2020-09-24 14:36:04 +02:00
B. Petersen
ab90b6b390
emit multiple events if messages given to dc_markseen_msgs() belong to different chats
2020-09-24 14:05:34 +02:00
B. Petersen
e9733e7525
always set chat_id on DC_EVENT_MSGS_NOTICED
2020-09-24 12:21:18 +02:00
B. Petersen
f3c7d2f9c6
remove unused function dc_marknoticed_all_chats()
2020-09-24 11:36:40 +02:00
B. Petersen
b5e1b1a2d2
test for DC_EVENT_MSGS_NOTICED
2020-09-24 11:36:40 +02:00
B. Petersen
5c1b69c3c5
if possible, set chat_id in DC_EVENT_MSGS_NOTICED even emitted by dc_markseen_msgs()
2020-09-24 11:36:40 +02:00
B. Petersen
12bc364e42
split DC_EVENT_MSGS_NOTICED off DC_EVENT_MSGS_CHANGED
...
the new event can be used for updating the badge counter.
to get the old behaviour, implementations can just do the same on both events.
2020-09-24 11:36:39 +02:00
Hocuri
879bd7e35e
Improve sentbox name guessing
2020-09-24 10:25:32 +02:00
bjoern
81b0b24114
Merge pull request #1940 from deltachat/update-provider-db-2020-09-22
...
update provider-database
2020-09-23 14:11:49 +02:00
B. Petersen
2095962466
update provider-database
...
executed `python3 src/provider/update.py ../provider-db/_providers/ > src/provider/data.rs`
2020-09-22 10:35:04 +02:00
Friedel Ziegelmayer
0c03024b97
feat: update dependencies
...
* feat: update dependencies
updates
- pgp
- async-std
- surf
- mailparse
* simplify dev deps
* more deps
* fixup
* fixup
2020-09-21 23:53:53 +02:00
bjoern
cd990039bd
Merge pull request #1911 from deltachat/fix_error_asm
...
Tune down error event on failed dc_continue_key_transfer to a warn
2020-09-21 18:27:40 +02:00
bjoern
184f303b54
Merge pull request #1938 from deltachat/summary-regexp
...
get_summarytext_by_raw: drop leading and trailing whitespace
2020-09-21 18:26:45 +02:00
Hocuri
637d2661e8
Show better errors when configuring ( #1917 )
...
* Show all errors when configuring
* Shorten some overly long msgs
2020-09-21 15:06:33 +02:00
B. Petersen
987eaae0c1
tweak ephemeral ffi documentation
...
add some crosslinks, clarify when the timer is started,
and avoid mixing "ephemeral" with "delete old messages".
2020-09-21 00:40:21 +03:00
Alexander Krotov
fc0e88539a
get_summarytext_by_raw: drop leading and trailing whitespace
...
Also remove unnecessary use of regexp.
2020-09-20 23:51:52 +03:00