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
bjoern
3a993a4b77
Update src/chat.rs
...
Co-authored-by: Floris Bruynooghe <flub@devork.be >
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
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
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
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
Hocuri
ea731a3619
Code style
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
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
B. Petersen
f3c7d2f9c6
remove unused function dc_marknoticed_all_chats()
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
Alexander Krotov
332a387c98
Fix nightly clippy warnings
2020-09-19 17:49:32 +03:00
B. Petersen
4090120041
make sure, new added device messages are always at the end of the chat
2020-09-19 12:40:02 +02:00
Floris Bruynooghe
428dbfb537
Resultify join_securejoin
...
This gets rid of ChatId::new(0) usage and is generally a nice first
refactoing step. The complexity of cleanup() unravels nicely.
2020-09-11 18:38:51 +02:00
Alexander Krotov
f657b2950c
Split ForcePlaintext param into two booleans
...
This allows to send encrypted messages without Autocrypt header.
2020-09-09 21:46:45 +03:00
Alexander Krotov
6fcc589655
Use ForcePlaintext as enum, not i32
2020-09-09 21:46:45 +03:00
Floris Bruynooghe
ce01e1652f
Add happy path test for secure-join
2020-09-07 18:53:05 +02:00
bjoern
8d9fa233c5
Update src/chat.rs
...
Co-authored-by: Asiel Díaz Benítez <asieldbenitez@gmail.com >
2020-09-02 21:36:12 +02:00
B. Petersen
8727e0acf8
add an index to significantly speed up get_fresh_msg_cnt()
2020-09-02 17:06:46 +02:00
Alexander Krotov
6763dd653e
Do not override mime type set by the user
2020-08-23 01:20:32 +03:00
Hocuri
b9ca7b8ace
Remove newlines from group names, chat names and the displayname ( #1845 )
2020-08-20 09:05:08 +02:00
B. Petersen
bd0b352854
make webrtc-instance-creation testable
2020-08-14 00:23:37 +02:00
dignifiedquire
1ae49c1fca
unify events
2020-08-10 10:32:48 +02:00
B. Petersen
c43f6964c5
wording
2020-07-23 23:49:05 +02:00
B. Petersen
04c90e2d87
differ between webrtc-instance-pattern and webrtc-rooms generated from that
2020-07-23 11:52:02 +02:00
B. Petersen
74fbd4fd16
show error if webrtc_instance is empty
2020-07-23 01:13:48 +02:00
B. Petersen
72d95075a0
return correct videochat-type
2020-07-22 23:36:21 +02:00
B. Petersen
39364d1f6c
prefix webrtc_instance by type, unify naming
2020-07-22 23:36:20 +02:00
B. Petersen
f3b9f671ba
webrtc-config-setting is just 'webrtc_instance'
2020-07-22 23:36:20 +02:00
B. Petersen
b9d3e6b342
send videochat-url and -invitation also through header
2020-07-22 23:36:20 +02:00
B. Petersen
f39abd6d51
correct summary for videochat-invites
2020-07-22 23:36:20 +02:00
B. Petersen
29d4197340
send out videochat-invitation message, set up fallback text
2020-07-22 23:36:19 +02:00
bjoern
f1b3527ad0
Merge pull request #1613 from deltachat/warn-wrong-pw
...
Show a better toast and a notification when the password is wrong (because it was changed on the server)
2020-07-13 13:12:31 +02:00
Alexander Krotov
18e4abc1df
Remove some and deny new indexing and slicing
2020-07-11 21:43:02 +03:00