jikstra
5661e0b8f1
Add test to verify exporting and importing the secret key works
2020-10-14 06:46:25 +02:00
Alexander Krotov
1672905c71
Remove outdated tests/stress.rs
...
All useful code has already been moved to relevant modules.
2020-10-14 05:58:47 +02:00
bjoern
0b80b81129
Merge pull request #1991 from deltachat/remove-DC_STR_COUNT
...
remove DC_STR_COUNT
2020-10-13 21:32:48 +02:00
B. Petersen
9b72aba8e3
remove DC_STR_COUNT
...
the constant comes from c-core
and was used to define the size of the string-array that time.
this is no longer needed in core
and also the UIs seems not to use it
(they will treat DC_STR* like an id,
there should be no need to know the max. DC_STR* value)
2020-10-13 18:18:34 +02:00
Alexander Krotov
1f24c5f8a4
Merge "protected groups" branch into master
2020-10-13 18:44:31 +03:00
B. Petersen
7f882a6406
less duplicate code on calling inner_set_protection()
2020-10-13 14:59:29 +02:00
B. Petersen
50f3af58f8
remove dc_chat_is_verified()
2020-10-13 14:59:28 +02:00
B. Petersen
8425e23d82
move get_protection_msg() to stock.rs as stock_protection_msg()
2020-10-13 14:59:28 +02:00
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