Commit Graph
69 Commits
Author SHA1 Message Date
jikstra 4e797037c4 Enable lto=true 2020-07-30 23:25:57 +02:00
jikstra 4bade7e13a Update cargo lock 2020-05-28 20:38:11 +02:00
jikstra 7d1d02bf3b Add missing DC_STR_* constants to deltachat.h 2020-05-28 13:41:56 +02:00
jikstra 551f7dc05a Make starts_with_ignore_case() private 2020-04-28 22:52:39 +03:00
jikstra 1b485770b6 cargo fmt 2020-04-28 22:52:39 +03:00
jikstra 50e18f84c2 Also support lowercased dcaccount: uris 2020-04-28 22:52:39 +03:00
jikstra 9eab96090d Cargo fmt 2020-04-28 22:52:39 +03:00
jikstra 737a741a54 Support lowercased openpgp4fpr uri scheme 2020-04-28 22:52:39 +03:00
jikstra c4de0f3b17 Apply remaining requested changes 2019-12-05 18:57:19 +01:00
jikstra 965d41990e change return to "" for errors 2019-12-05 18:57:19 +01:00
jikstra a7e1b4653e Apply requested changes 2019-12-05 18:57:19 +01:00
jikstra e38b42bc21 Add api docu 2019-12-05 18:57:19 +01:00
jikstra 36bd502292 cargo fmt 2019-12-05 18:57:19 +01:00
jikstra 594bf3dfc8 fixup! Move to json_serde, add tests and implement missing python api 2019-12-05 18:57:19 +01:00
jikstra 6d30ccfc63 Move to json_serde, add tests and implement missing python api 2019-12-05 18:57:19 +01:00
jikstra 1b79f513a3 Implement more json key/value pairs 2019-12-05 18:57:19 +01:00
jikstra 5d04fd0d97 color tweaking 2019-12-01 02:46:04 +01:00
jikstra d05b5e40df add new icon-device icons 2019-12-01 02:31:12 +01:00
jikstra 0dd436ac54 Add new icon-saved-messages 2019-12-01 02:20:01 +01:00
jikstra 20b82b3638 Fix ffi actually calling context.sql.is_open() 2019-09-26 18:36:31 +02:00
jikstra 53b5cbc12a get_filemime() should return an empty string if no mimetype is present
and not default to `applicatopm/octet-stream`
2019-09-26 17:12:06 +02:00
jikstra efc563f5ff fix test 2019-09-25 01:06:42 +02:00
jikstra e52acc994c Make get_draft() return Ok(None) when called for a special chat id 2019-09-25 01:06:42 +02:00
jikstra db20ecf985 Remove println 2019-09-13 22:35:31 +02:00
jikstra e59f421e79 cargo fmt 2019-09-13 22:25:18 +02:00
jikstra 75b7de712a Fix get_draft to just return null and not produce errors if there's no
draft
2019-09-13 18:19:52 +02:00
jikstra b9cfcce284 fix ffi 2019-09-05 22:55:25 +02:00
jikstra 70d997964b cargo fmt 2019-09-05 22:55:25 +02:00
jikstra 4ffe71e1df Fix encoding for email & name, fix qrencode command in repl 2019-09-05 22:55:25 +02:00
jikstra cc2339fbe2 Fix closure in dc_securejoin, make sure we return an empty string and
never null, make dc_get_securejoin_qr return an Option<String> and move
the logic to cast it to c_str into the ffi
2019-09-05 22:55:25 +02:00
jikstra 5ff472dae0 Implement helper method to easily check if a bit flag is inside
listflags. Make Contact::get_all use it

Add method documentation and tests
2019-09-05 18:02:50 +02:00
jikstra d4dfc5443c Add missing config keys which caused a panic in desktop 2019-08-15 20:38:22 +02:00
jikstra d4bd9187d6 Fix panic in dc_set_chat_profile_image because of missing
ok_to_continue=false
2019-08-15 13:36:43 +02:00
jikstra a3683be047 cargo fmt 2019-08-11 18:55:23 +02:00
jikstra 3ba847ece2 Apply requested changes 2019-08-11 16:57:49 +02:00
jikstra b7ff996b15 Cargo fmt + refactoring 2019-08-10 17:57:53 +02:00
jikstra faf53fe11e Manually get a lossy utf8 string from the database if other fails 2019-08-10 17:53:05 +02:00
jikstra b23c4b4da6 Remove debug printlns, refactor a bit 2019-08-10 16:51:57 +02:00
jikstra 966bb2271a Put something into the msg object if we fail to get a valid string out of the db 2019-08-10 16:47:38 +02:00
jikstra d323bd3593 Write tests and docs for dc_strdup and dc_strdup_keep_null 2019-08-09 19:30:36 +02:00
jikstra cb138fdcb7 Remove comment 2019-08-07 23:17:11 +02:00
jikstra a993c256e2 Remove comment 2019-08-07 23:15:55 +02:00
jikstra 70f6aa9d3a run cargo fmt 2019-08-07 21:21:13 +02:00
jikstra e1d7871754 Remove gotos in dc_strencode 2019-08-07 21:20:35 +02:00
jikstra 655884b559 run cargo fmt 2019-08-07 21:13:54 +02:00
jikstra e0dbd47185 Remove gotos from dc_mimefactory 2019-08-07 21:13:20 +02:00
jikstra 925759a922 run cargo fmt 2019-08-07 20:57:58 +02:00
jikstra 9034f316ba Remove gotos from dc_e2ee_encrypt function 2019-08-07 20:57:42 +02:00
jikstra 0276f97d96 run cargo fmt 2019-08-07 20:52:38 +02:00
jikstra ac2f9fdee5 remove gotos from new_data_part function 2019-08-07 20:52:18 +02:00
jikstra 76b3c532b1 run cargo fmt 2019-08-07 20:40:50 +02:00
jikstra b715df9e97 make ok_to_continue variable mutable 2019-08-07 19:16:21 +02:00
jikstra acb3d14d7d remove gotos in dc_e2ee in dcrypt_part function 2019-08-07 19:14:35 +02:00
jikstra c0e3c7a9df run cargo fmt 2019-08-07 19:01:24 +02:00
jikstra 164130a83f Replace gotos with ok_to_continue (is_valid) approach 2019-08-07 19:00:28 +02:00
jikstra 76d3d86a9e import dc_extract... method for rustdoc example 2019-08-06 21:33:01 +02:00
jikstra c0b1e41820 Improve function documentation 2019-08-06 21:33:01 +02:00
jikstra 10689f45f4 cargo fmt 2019-08-06 21:33:01 +02:00
jikstra 205e2d4e99 Fix rustdoc 2019-08-06 21:33:01 +02:00
jikstra 5b368960c0 Apply requested changes 2019-08-06 21:33:01 +02:00
jikstra 9ecd0f80dc Fix test and simplify if gate 2019-08-06 21:33:01 +02:00
jikstra 45eec35e6e Make dc_extract_grpid_from_rfc724_mid take/return &str instead of String 2019-08-06 21:33:01 +02:00
jikstra b74a86f617 Run cargo fmt 2019-08-06 21:33:01 +02:00
jikstra ff95c44d51 Make receive_imf use safe version of dc_extract_grpid_from_rfc724_mid
- Remove unused unsafe wrapper
- Adjust tests to use safe version
2019-08-06 21:33:01 +02:00
jikstra d5168916df Refactor dc_extract_grpid_from_rfc724_mid_list and rename test 2019-08-06 21:33:01 +02:00
jikstra 282f964f2f Add tests for dc_extract_grpid_from_rfc724_mid and implement safe
version of dc_extract_grpid_from_rfc724_mid
2019-08-06 21:33:01 +02:00
jikstra 8274c6bf17 Allow non_snake_case in dc_replace_bad_utf8_chars function 2019-07-31 16:26:17 +02:00
jikstra 566d255b33 run cargo fmt 2019-07-31 16:26:17 +02:00
jikstra 9fb9fb0fc1 Remove goto/current_block logic with OK_TO_CONTINUE. Keeps identation 2019-07-31 16:26:17 +02:00