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
e66ca5b018
parse incoming videochat-invitations and mark messages as such
2020-07-22 23:36:20 +02:00
B. Petersen
0520ec8ab7
implement videochat-getters
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
B. Petersen
11b369db0f
rename basic_web_rtc_instance to basic_webrtc_instance
2020-07-22 23:36:19 +02:00
Alexander Krotov
71c7b30db7
Remove image_meta dependency
2020-07-22 00:25:54 +03:00
B. Petersen
dcf6a41239
update docs
2020-07-21 00:57:08 +02:00
B. Petersen
94035d6286
show errors from connect_configured() (as 'IMAP Connect without configured params' (ConnectWithoutConfigure)) as DC_EVENT_ERROR_NETWORK as these may not be shown to the user if there is actually no internet
2020-07-21 00:36:21 +02:00
B. Petersen
e53c88ecb8
add a macro that sends out DC_EVENT_ERROR_NETWORK and takes an Error as parameter. DC_EVENT_ERROR_NETWORK errors may be handled differently in the uis
2020-07-21 00:33:49 +02:00
Simon Laux
bb2e8b4392
improve documentation a bit
2020-07-18 19:12:27 +02:00
Simon Laux
8895dc36c7
add documentation
2020-07-18 19:12:27 +02:00
Simon Laux
017bdc88dd
add config value BasicWebRTCInstance
2020-07-18 19:12:27 +02:00
Alexander Krotov
1c73021d77
Update rust toolchain to 1.45.0
2020-07-17 01:08:32 +03:00
Alexander Krotov
6067d40a6f
cargo fmt
2020-07-16 11:55:51 +02:00
Alexander Krotov
cde587fefa
idle: drain unsolicited response channel
...
This prevents multiple unsolicited messages from skipping multiple IDLEs.
Also skip IDLE only if an EXISTS message was received.
2020-07-16 11:55:51 +02:00
holger krekel
fc12beda24
fix a problem where IDLE would run but miss messages
2020-07-16 11:55:51 +02:00
holger krekel
e07869ae95
improve debugging
2020-07-16 11:55:51 +02:00
Alexander Krotov
f461e2a2fd
import_backup: do not load all blobs into memory at once
2020-07-16 10:58:52 +02:00
B. Petersen
6e6823f395
sync encrypted avatars only
2020-07-15 02:34:32 +02:00
B. Petersen
964f60ff4b
simple sync of Selfavatar
...
when seeing our own profile image send from other devices,
we use them as Selfavatar on the current device as well.
as there is no special message sent on avatar changes,
this is a simple approach to sync the avatar across devices.
2020-07-15 03:11:12 +03:00
B. Petersen
7624e574bb
let BlobObject::new_from_path() also accept , this allows to use the function for values from the database and from outside, which is handy in situations where you do not really know
2020-07-15 03:11:12 +03:00
Alexander Krotov
667364b90e
Mark location-only messages as auto-generated
2020-07-15 02:16:20 +03:00
Alexander Krotov
7bb6890f26
Send MDNs for messages deleted on the server
...
Now MarkseenMsgOnImap sends MDN even if it can't mark the message as
seen on the server.
To prevent multiple MDNs from being sent, MarkseenMsgOnImap is postponed
until the message is detected in a folder from which it is not going to
be moved.
2020-07-14 23:26:48 +03: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
6902250d6b
securejoin: do not check the signatures existance twice
...
Mimeparser.was_encrypted() checks if the message is an Autocrypt encrypted
message. It already means the message has a valid signature.
This commit documents a few functions to make it clear that signatures
stored in Mimeparser must be valid and must always come from encrypted
messages.
Also one unwrap() is eliminated in encrypted_and_signed(). It is possible
to further simplify encrypted_and_signed() by skipping the was_encrypted()
check, because the function only returns true if there is a matching
signature, but it is helpful for debugging to distinguish between
non-Autocrypt messages and messages whose fingerprint does not match.
2020-07-13 12:36:14 +02:00
bjoern
64ab86a1a6
Merge pull request #1705 from deltachat/seen_ephemeral_timer
...
Start ephemeral timer immediately for already seen messages
2020-07-13 02:21:22 +02:00
B. Petersen
4b445b7dd7
use time::SystemTime instead of time::Instant as the latter may use libc::clock_gettime(CLOCK_MONOTONIC) eg. on android and does not advance while being in deep sleep mode. therefore, time::Instant is not a reliable way for timeouts or stoping times.
2020-07-13 02:27:03 +03:00
Alexander Krotov
d54ade5891
Start ephemeral timer for non-fresh messages
2020-07-13 01:20:16 +03:00
Alexander Krotov
0da21aa9f6
dc_receive_imf: rename timer into ephemeral_timer
2020-07-13 01:15:51 +03:00
Alexander Krotov
1e84e81e7d
imap: expunge folder before IDLE if needed
...
This ensures Inbox is expunged timely in setups that don't watch
DeltaChat folder.
2020-07-13 00:54:20 +03:00
Alexander Krotov
4f78e2e14e
Do not show an error on IMAP connection failure
...
It is annoying as it happens every time the server is rebooted.
2020-07-12 17:17:26 +02:00
Alexander Krotov
7da69a4644
Add dc_msg_get_ephemeral_{timer, timestamp}()
2020-07-11 22:25:17 +03:00
Alexander Krotov
8efe7cade7
Rename part_mut into part
2020-07-11 21:43:02 +03:00
Alexander Krotov
18e4abc1df
Remove some and deny new indexing and slicing
2020-07-11 21:43:02 +03:00
Hocuri
ee7b7eb4f2
Once more, fix #1575 Messages sent by DeltaChat trigger spam filters due to incorrect/non-compliant formatting options
2020-07-11 21:10:06 +03:00
Hocuri
b50410ab15
Fix #1687
2020-07-11 17:38:48 +02:00
Hocuri
9f7567c1d1
Abort on failing imap configuring
2020-07-11 14:27:15 +02:00
Hocuri
68e3bce60e
Remove error!() from https://github.com/deltachat/deltachat-core-rust/pull/1539
...
it led to a less clear error message being shown when the configure
failed.
2020-07-11 14:27:15 +02:00
Hocuri
86bc54508f
More explicit
2020-07-11 14:27:15 +02:00
Hocuri
ae2fd4014a
Emit Event::ErrorNetwork again
2020-07-11 14:27:15 +02:00
Hocuri
2c23433185
Make it work
...
Add a mutex to prevent a race condition when a "your pw is wrong" warning is sent, resulting in multiple messeges being sent.
Do not mute the device chat but "only" send MsgsChanged event when no
notification shall be shown.
More logging.
2020-07-11 14:27:15 +02:00
Hocuri
3f2e67f07a
First try for notification
2020-07-11 14:27:14 +02:00
Hocuri
06a4f15995
Better warning if the pw is wrong
2020-07-11 14:27:14 +02:00
Alexander Krotov
e2c532704a
Fix documentation typo
2020-07-11 00:04:38 +03:00
Alexander Krotov
f28a0db7d0
Store typed timer in ChatEphemeralTimerModified event
2020-07-10 02:55:17 +03:00
Alexander Krotov
e5d5009d6a
Emit ChatEphemeralTimerModified when user changes the timer
2020-07-10 02:52:45 +03:00
Alexander Krotov
0ae8663eed
imap: call dc_receive_imf sequentially
...
Parallel processing of messages results in bugs such as messages sent by
a new member being processed before the message that adds this member to
the chat, even when it has lower UID. In this case, messages are shown as
"[Unknown sender for this chat. See 'info' for more details.]", while
there is a message "Member ... added" right before, because writing the
information about new member to the database takes longer then reading
old index from the database.
2020-07-10 00:40:52 +03:00