Floris Bruynooghe
f505ff03e4
Do not break double file extensions
...
Double extensions are sometimes used to identify files correctly,
e.g. .tar.gz or .html.zip. Breaking those extensions is not very
nice.
This fixes #865 .
2019-11-21 22:18:31 +01:00
björn petersen
ff8e282c43
Merge pull request #862 from deltachat/fix-bcc-self
...
mark messages as sent
2019-11-20 15:28:40 +01:00
B. Petersen
e39cb160f9
make messages as sent in groups with only SELF and bcc_self disabled
2019-11-20 02:48:43 +01:00
björn petersen
76ce0c3540
Merge pull request #856 from deltachat/fix-time-smearing
...
fix time smearing
2019-11-19 23:25:11 +01:00
B. Petersen
f7047bbf51
add detailed comments about time-smearing
2019-11-19 22:52:24 +01:00
B. Petersen
c3a53cefb0
fix time smearing
...
if two messages have the same time,
this results i all kinds of sorting failures,
esp. in non-delta-muas and on forwarding messages.
so, no two messages sent out from delta have the same timestamp.
normally, this is no problem, but when things are sent too fast,
eg. on forwarding, we lend us some time from the future.
however, all this did not work
because we forgot to write back the modified time,
this is fixed by this commit, as well as some cleanup.
2019-11-19 22:23:01 +01:00
björn petersen
a88153954e
Merge pull request #854 from deltachat/tweak-device-msg
...
tweak device messages
2019-11-19 22:19:42 +01:00
Alexander Krotov
4732085421
Fix some clippy warnings
2019-11-19 19:52:13 +01:00
B. Petersen
e4e6a00fe4
rename has_device_msg() to was_device_msg_ever_added() what describes better what the function is doing
2019-11-19 13:21:02 +01:00
B. Petersen
700e10bc0e
use dc_add_device_msg() also to add labels-only, this is clearer as having a function with 'skip' in the name
2019-11-19 13:05:01 +01:00
B. Petersen
2a4c193601
simplify check for existing device-message
2019-11-19 11:56:35 +01:00
B. Petersen
d3fa289f27
streamline dc_add_device_msg_once|unlabelled() to one function
2019-11-19 11:49:02 +01:00
B. Petersen
1534a07ded
add dc_has_device_msg()
2019-11-18 17:31:03 +01:00
B. Petersen
a4e92694ba
name unlabelled device-messages as such
2019-11-18 16:47:18 +01:00
B. Petersen
035da9e5d7
add dc_skip_device_msg() and belonging tests
2019-11-18 16:47:18 +01:00
B. Petersen
fed6f4ab8a
do not re-add device-messages deleted by the user
2019-11-18 16:47:18 +01:00
Nico de Haen
d7c42f3c98
Use coalesce for optional columns
...
resolves #851
2019-11-17 20:57:50 +01:00
B. Petersen
ad852161f3
higher resolution for device-icon
2019-11-17 20:56:42 +01:00
B. Petersen
e9b2d6a594
adapt tests to saved-messages chat
2019-11-17 20:56:07 +01:00
B. Petersen
f9d2fe710d
rename me-chat to saved-messages, use an appropriate icon
2019-11-17 20:56:07 +01:00
björn petersen
a4a1cd42db
Merge pull request #844 from deltachat/move-location-to-trash
...
Delete msg related POI when message is deleted
2019-11-16 17:40:53 +01:00
Alexander Krotov
69e14dcb2d
Replace some magic numbers with constants
2019-11-16 16:08:08 +00:00
Nico de Haen
e2673894b4
Delete message only if its a POI
2019-11-16 16:55:13 +01:00
B. Petersen
852b16c972
target comment of @flub
2019-11-16 13:55:59 +01:00
B. Petersen
5796c28391
test contact adding and modifying
2019-11-16 13:55:59 +01:00
holger krekel
b6095e29d7
Update src/pgp.rs
2019-11-16 13:53:47 +01:00
Alexander Krotov
f778957caf
Improve documentation and comments
2019-11-16 13:53:47 +01:00
Alexander Krotov
47f8da6532
Expand tabs into spaces
2019-11-16 12:32:32 +01:00
Alexander Krotov
0b3f2a55df
Do not use wildcard match in msgtype_has_file
...
This way there will be a compiler error notifying that the function needs to be updated when a new message type is added.
2019-11-16 12:31:13 +01:00
Nico de Haen
13ff2bd8c4
Fix wrong indents
2019-11-16 11:28:43 +01:00
Nico de Haen
c690a64462
Update msg related location when message is deleted
...
resolves #843
2019-11-16 11:04:56 +01:00
B. Petersen
d808bfe400
add some tests for me-chat and deaddrop
2019-11-13 22:31:18 +01:00
B. Petersen
1b30078c09
test archive functions
2019-11-13 10:16:57 +01:00
B. Petersen
0278875e03
add device-chat tests
2019-11-13 00:13:32 +01:00
B. Petersen
d0ccf28678
do not add random label for unlabelled device-messages
2019-11-13 00:13:32 +01:00
B. Petersen
5023255ebc
fix accidentally called maybe_add_bcc_self_device_msg()
2019-11-13 00:13:32 +01:00
holger krekel
545376875a
fix python tests
2019-11-12 16:10:48 +01:00
B. Petersen
a9fe77b62e
use separate column for device-msg-labels
2019-11-12 16:10:48 +01:00
B. Petersen
b42d8799b4
add dc_add_device_msg_once() to fii
2019-11-12 16:10:48 +01:00
B. Petersen
a42e197634
add device-message only once
2019-11-12 16:10:48 +01:00
B. Petersen
fc32c85608
add device-msg 'consider enabling bcc_self' if bcc_self is disabled and an autocrypt-setup-message is received
2019-11-12 16:10:48 +01:00
B. Petersen
dabd431b1f
change default for bcc_self, preserve values for existing installations
2019-11-12 16:10:48 +01:00
B. Petersen
85b4817a1e
restore some comments
2019-11-12 16:10:48 +01:00
B. Petersen
84c6113271
use enum for show_emails
2019-11-12 16:10:48 +01:00
B. Petersen
9506f8c38e
use bool for exists_before_update
2019-11-12 16:10:48 +01:00
Friedel Ziegelmayer
d330d890c0
setup minimal github action
...
Just so we can experiment with it on branches
2019-11-12 14:31:38 +01:00
Alexander Krotov
c6369b1c5a
Implement TryFrom instead of TryInto
...
TryInto is derived automatically and its documentation recommends implementing TryFrom.
2019-11-10 15:38:58 +00:00
Alexander Krotov
bfa0f9d911
Use the first subkey for encryption instead of the primary key
2019-11-10 16:32:09 +01:00
B. Petersen
154cb2db83
add missing DC_STR_DEVICE_MESSAGES
2019-11-10 16:31:12 +01:00
B. Petersen
37ecfa6b67
fix gm2local offset calculations
2019-11-09 20:26:00 +01:00