1438 Commits

Author SHA1 Message Date
Alexander Krotov 035a414c8f Use the first subkey for encryption instead of the primary key 2019-11-10 07:16:50 +03:00
B. Petersen 37ecfa6b67 fix gm2local offset calculations 2019-11-09 20:26:00 +01:00
B. Petersen 99ba2fb358 let dc_timestamp_to_str() print the local time, not UTC times. the function is used for outputs directly shown to the user, eg. dc_get_msg_info() 2019-11-09 20:26:00 +01:00
B. Petersen 85ebde29dc do not resort chatlist on draft changes
resorting the chatlist on changing drafts has some ux issues.
eg. when the chatlist is visible together with the input field,
if may come to flickering resorting during input
or to a resorting just when the user leave the chat
as this might trigger set_draft().

but also on mobiles, the resorting is visible and a bit unexpected.
also it is unclear what happens when a chat with a draft is entered
and left without modifications.

the solution proposed here is to ignore draft on sorting
while still showing them in the chatlist
if they're newer as the last message.

a possible disadvantage is
that the date for the chat with a draft does not follow the ordering
(the ordering is by the last message),
however, the date is not shown as a "primary sort" criterion or so,
so it might be that this is completely okay.
also, of course, it affects only draft :)
2019-11-09 19:32:13 +01:00
björn petersen 0876f45503 Merge pull request #810 from deltachat/sync-config-param
restore config-param if configure() fails
2019-11-08 19:36:43 +01:00
B. Petersen 2fae6890c2 the new MsgId type comes with a formatter that makes special formatting in the repl tool superfluous 2019-11-07 13:19:38 +01:00
B. Petersen 34f9961857 restore config-param if configure() fails 2019-11-06 22:59:14 +01:00
B. Petersen 515f0c5089 correct ffi return value of dc_add_device_msg() 2019-11-06 13:33:30 +01:00
B. Petersen 5a11551b4d block sending to chats that do not support sending (normally, this should already be avoided in the ui) 2019-11-06 13:33:30 +01:00
B. Petersen 49bf99588b show chat-profile-image in repl tool 2019-11-06 13:33:30 +01:00
B. Petersen 231110fb61 add profile-icon for device-chat 2019-11-06 13:33:30 +01:00
B. Petersen 4c30bf80ce target comments of @flub 2019-11-06 13:33:30 +01:00
B. Petersen f8afefa2c1 get contact- and chat-info for device-messages 2019-11-06 13:33:30 +01:00
B. Petersen 89bb2d0ffe add devicemsg to repl tool 2019-11-06 13:33:30 +01:00
B. Petersen b5d5d98645 implement add_device_msg() 2019-11-06 13:33:30 +01:00
B. Petersen 89f394ab86 create separate function for preparing a blob 2019-11-06 13:33:30 +01:00
B. Petersen cbaa4e03b3 basic devicetalk implementation 2019-11-06 13:33:30 +01:00
B. Petersen 50539465b9 prototype a device-chat 2019-11-06 13:33:30 +01:00
B. Petersen be08bcb22b rename DC_CONTACT_ID_DEVICE to DC_CONTACT_ID_INFO to be in-line with dc_msg_is_info() 2019-11-06 13:33:30 +01:00
holger krekel dcd92a894e fix export: write backup_time to the destination not the source sql file
and perform slightly cleaner teardown in python
2019-11-06 13:26:32 +01:00
holger krekel 6336eeb568 better error on has_backup() failing 2019-11-06 13:26:32 +01:00
holger krekel 6b18cbda1f refine dc_copy along the lines @flub did for blobstore 2019-11-06 13:26:32 +01:00
Alexander Krotov cf023ea557 sql: remove unnecessary ? in prepare() and prepare2() 2019-11-06 13:26:03 +01:00
Alexander Krotov 51a804a80f location: use "bool" for "independent" argument 2019-11-06 14:17:59 +03:00
B. Petersen 1a33b1c574 bump version 1.0.0-beta.7 2019-11-05 17:04:44 +01:00
B. Petersen 67e2e4d415 target comment of @hpk42 2019-11-04 13:20:35 +01:00
B. Petersen 8c2efa707a name special contact-ids where easily possible
the point of this pr is to get an overview
how and where DC_CONTACT_ID_DEVICE is used,
to prepare introducing a device-"chat".

i did not change the sql statements for now
as this would require some more refactoring
and has the potential to introduce bugs.
2019-11-04 13:20:35 +01:00
B. Petersen 87abc6e4a2 adapt wording 2019-11-03 21:36:40 +01:00
B. Petersen 0ea017c53d add repl command for testing interrupt-idle 2019-11-03 21:36:40 +01:00
B. Petersen b9c7510b58 use boolean for jobs_needed 2019-11-03 21:36:40 +01:00
holger krekel 01e7caf65a use job_id as mail_id for SendableEmail -- it's only an internal id and job_id is unique enough. 2019-11-03 21:36:01 +01:00
holger krekel 1cfeb730c3 try to fix some smtp todos and do better error logging 2019-11-03 21:36:01 +01:00
Floris Bruynooghe a3b90a08b6 Copy the file contents manually
Before we created an empty file and asked the OS to copy the file.
The OS is very good at this so this is a good idea generally.  However
it seems that in some cases, possibly an Android Dowload folder, we
might be able to create a file but not overwrite it.  Thus refactor
this a bit so we are copying the file ourselves.

There are no new tests here since the behaviour remains identical.
The good news is that the existing tests were good enough to catch
some bugs already.
2019-11-03 20:16:56 +01:00
holger krekel 31571be71e add account.get_chat_by_id API 2019-11-03 20:14:57 +01:00
holger krekel 661fc45106 split "chatting.py" into "contact.py" and "chat.py" to be more reminiscent of the core-rust structure 2019-11-03 20:14:57 +01:00
holger krekel da64dee3e0 start a changelog for the yet untagged beta.7 2019-11-03 01:32:49 +01:00
holger krekel cb00f5da79 fix #786 by always succeeding to create a canonical deterministic message-id -- thanks @csb0730 for the analysis of the issue 2019-11-03 01:28:45 +01:00
B. Petersen e1df41c209 fix tests 2019-11-03 01:19:29 +01:00
B. Petersen 3b64748427 add proptest-regression file 2019-11-03 01:19:29 +01:00
B. Petersen 70cef68eeb display failed messages 2019-11-03 01:19:29 +01:00
holger krekel c5f64d2988 address @link2xt comments 2019-11-03 00:21:27 +01:00
holger krekel 4eb068613d extend and fix python/test side of location streaming 2019-11-03 00:21:27 +01:00
holger krekel d774430ec2 simplify location parsing 2019-11-03 00:21:27 +01:00
holger krekel d24a982757 fix various location-streaming issue, test passes now 2019-11-03 00:21:27 +01:00
holger krekel d74c70a57c fix and streamline location-outgoing pipeline 2019-11-03 00:21:27 +01:00
holger krekel a6f0f78588 addresses #757 test and add location streaming python api 2019-11-03 00:21:27 +01:00
B. Petersen e6d9991581 fix conversion from nanoseconds to milliseconds
1_000_000 nanosecond = 1 millisecond
2019-11-02 15:22:27 +01:00
B. Petersen ec8dbddcfb tweak ffi documentation wrt certificate checks 2019-11-01 18:06:01 +01:00
B. Petersen bc699f17d9 avoid usage of get_subtitle() in repl-tool, remove dc_chat_get_subtitle() from documentation. 2019-11-01 13:19:47 +01:00
B. Petersen 832df41130 target comments of @hpk42 and @flub 2019-11-01 00:46:48 +01:00