B. Petersen
9fc6bbf41f
tweak error texts
2020-10-13 14:59:28 +02:00
B. Petersen
1e2e042244
clarify that signature of add_protection_msg() takes chat-promoted parameter
2020-10-13 14:59:28 +02:00
B. Petersen
03d86360d6
details docstring, thanks @flub
2020-10-13 14:59:28 +02:00
B. Petersen
4eb8d3fef6
tweak documentation towards https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text - thanks @flub
2020-10-13 14:59:28 +02:00
B. Petersen
da727740ab
use warn! for ffi-usage-errors
2020-10-13 14:59:28 +02:00
bjoern
3a993a4b77
Update src/chat.rs
...
Co-authored-by: Floris Bruynooghe <flub@devork.be >
2020-10-13 14:59:27 +02:00
B. Petersen
45dae1ff0c
protect against attackers dropping the protect-this-chat message by not showing unprotected messages directly; this is done by checking the Chat-Verified flag on each incoming message. moreover, make sure, the flag is signed+encrypted (it must be read from the protected headers).
2020-10-13 14:59:27 +02:00
B. Petersen
f144426bf5
use 'unreachable' instead of 'panic'
2020-10-13 14:59:27 +02:00
B. Petersen
e447bdc0c3
simplify code-path
2020-10-13 14:59:27 +02:00
B. Petersen
c1768bb311
add dc_msg_get_info_type() to allow drawing a shield in the uis
2020-10-13 14:59:27 +02:00
B. Petersen
66cb3d4358
fix ffi and bindings, error is already logged in core
2020-10-13 14:59:27 +02:00
B. Petersen
47f4f2bd08
use language of receiver for protection-messages, show correct sender
2020-10-13 14:59:26 +02:00
B. Petersen
12cf89735c
handling incoming protection-changes messages, always add info-msg
2020-10-13 14:59:26 +02:00
B. Petersen
d240bbcd07
if a message is replaced by an error, this also removes special is_system_message states
2020-10-13 14:59:26 +02:00
B. Petersen
5e07a36cd2
add/send info-message on protection changes
2020-10-13 14:59:26 +02:00
B. Petersen
49b5962568
add set_chat_protection() api
2020-10-13 14:59:26 +02:00
B. Petersen
a7998c190c
remove DC_CHAT_TYPE_VERIFIED_GROUP resp. Chattype::VerifiedGroup
2020-10-13 14:59:26 +02:00
B. Petersen
b8a55f3aa4
replace chat.is_verified() by chat.is_protected()
2020-10-13 14:59:25 +02:00
B. Petersen
ab8bf3c2f3
use ProtectionStatus to create chats
2020-10-13 14:59:25 +02:00
B. Petersen
d05dd977d9
migrate database
...
add 'protected' row in chats table,
convert old verified-groups to 'protected'
2020-10-13 14:59:25 +02:00
Alexander Krotov
8b3494b5c1
Do not display [...] after non-chat quotes
...
Top quotes are displayed as quotes for non-chat mails, so [...] used to
indicate there was a quote is not needed.
2020-10-12 21:55:22 +03:00
bjoern
d9a45eb931
Merge pull request #1981 from deltachat/notice-on-answer
...
basic DC_EVENT_MSGS_NOTICED multi-device-support
2020-10-12 17:58:32 +02:00
Alexander Krotov
cb5bcebf75
Separate quote from reply with an empty line
...
This makes quotes easier to read in previous DC versions and plaintext
MUAs.
2020-10-11 02:28:41 +03:00
Alexander Krotov
69f159792e
Only use summary for quote if text is empty
...
For text messages, summary joins all lines into one, so multi-line quotes
look bad in Thunderbird.
2020-10-11 01:37:24 +03:00
Hocuri
bb50b9abe4
Show more errors ( #1967 )
2020-10-10 18:19:31 +02:00
holger krekel
48e1f53826
fix recovering offline/lost connection situations
2020-10-10 17:44:12 +03:00
Hocuri
be88b946b6
Peek reipients, fetch existing messages
...
Read all of an e-mail accounts messages and extract all To/CC addresses
if the From was from our own account.
Then, fetch existing messages from the server and show them.
Also, I fixed two other things:
- just by chance my test failed because of an completely unrelated bug.
The bug: bcc_self messages were not marked as read if mvbox_move was set
to true.
- add some color to the test output (minor change)
2020-10-10 15:56:30 +03:00
B. Petersen
c2b222e6a5
emit DC_EVENT_MSGS_NOTICED when a chat was answered on another device
2020-10-10 12:50:23 +02:00
Hocuri
cf5342c367
Allow drafts without text if there is a quote
2020-10-10 12:41:43 +03:00
Hocuri
990ab739cc
Save quote as draft
2020-10-10 12:41:43 +03:00
Alexander Krotov
eaec03142b
Use get_summarytext() for quotes
...
Co-Authored-By: Hocuri <hocuri@gmx.de >
2020-10-10 12:41:43 +03:00
Hocuri
ea731a3619
Code style
2020-10-10 12:41:43 +03:00
Hocuri
719cba68b3
Don't flood the log
...
with `src/message.rs:1794: Empty rfc724_mid passed to rfc724_mid_exists`
messages
2020-10-10 12:41:43 +03:00
Alexander Krotov
20182b027e
Add quote API
...
Sticky encryption rule, requiring that all replies to encrypted messages
are encrypted, applies only to messages with a quote now.
Co-Authored-By: B. Petersen <r10s@b44t.com >
2020-10-10 12:41:43 +03:00
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