holger krekel
a749aee247
fix some longer standing nonsense code that sent to misleading MSG_READ events instead of one correct one
2019-08-08 20:39:29 +02:00
holger krekel
447d3c3416
(jikstra, hpk) fix a logic bug introduced with the stock-string merge which set the better message only if it was empty
2019-08-08 20:39:29 +02:00
holger krekel
a41204b275
fix a failure which blocked correctly sending out messages (dc_job_add_smtp mis-set filename)
2019-08-08 20:39:29 +02:00
dignifiedquire
df4927662d
memory is hard
2019-08-08 13:07:59 +02:00
dignifiedquire
f9709eb931
try to fix swap_remove usage
2019-08-08 13:07:59 +02:00
dignifiedquire
7421aade3f
try some more things
2019-08-08 13:07:59 +02:00
dignifiedquire
4cc9172ee7
print decrypted message
2019-08-08 13:07:09 +02:00
dignifiedquire
7e129bcfc3
print incoming messages
2019-08-08 13:06:08 +02:00
dignifiedquire
33246726de
bytes ftw
2019-08-08 13:06:08 +02:00
dignifiedquire
3a60ada4c3
try more
2019-08-08 13:06:08 +02:00
dignifiedquire
7a3053e303
more correct bytes
2019-08-08 13:06:08 +02:00
dignifiedquire
d32f467790
forget about the memory
2019-08-08 13:06:08 +02:00
dignifiedquire
6a37ef47c0
fix nullbyte
2019-08-08 13:06:08 +02:00
dignifiedquire
56a23ddd97
add some logging
2019-08-08 13:06:08 +02:00
dignifiedquire
e882e37855
wip
2019-08-08 13:06:08 +02:00
Friedel Ziegelmayer
c1f19aa9d3
Merge pull request #292 from link2xt/dc_get_abs_path_safe
...
Implement dc_get_abs_path_safe
2019-08-08 12:28:19 +02:00
Friedel Ziegelmayer
aab2336223
Merge pull request #304 from link2xt/set_self_key_bool
...
Return bool from set_self_key()
2019-08-08 12:20:15 +02:00
Friedel Ziegelmayer
7863f5719c
Merge pull request #303 from deltachat/fix_chat_list_no_messages
...
fix own messages displayed as noMsgs in summary
2019-08-08 12:19:31 +02:00
Alexander Krotov
8c933f8fa8
Return bool from set_self_key()
2019-08-08 12:27:01 +03:00
Simon Laux
3d83409375
fix own messages displayed as noMsgs in summary
2019-08-08 08:48:58 +02:00
Alexander Krotov
76dbb37609
Implement dc_get_abs_path_safe
2019-08-08 04:20:12 +03:00
Jikstra
e9ff02bdc5
Merge pull request #296 from deltachat/remove_gotos_dc_e2ee
...
Remove gotos from dc_e2ee
2019-08-08 00:22:51 +02:00
Jikstra
602d145348
Merge pull request #297 from deltachat/remove_gotos_dc_mimefactory
...
Remove gotos from dc_mimefactory
2019-08-08 00:15:28 +02:00
Jikstra
ee264117d3
Merge pull request #298 from deltachat/remove_gotos_dc_strencode
...
Remove gotos from dc_strencode
2019-08-07 23:41:33 +02:00
Jikstra
721dcd7ccd
Merge pull request #295 from deltachat/remove_gotos_dc_saxparser
...
Remove gotos from dc_saxparser
2019-08-07 23:37:50 +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
Friedel Ziegelmayer
ea6972118a
refactor: rusty contact
...
* refactor(contact): rename and rusty memory allocations
* refactor(contact): use enum to indidcate origin
* refactor(contact): safe blocking and unblocking api
* refactor(contact): only safe and no more cstrings
2019-08-07 22:20:48 +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
Dmitry Bogatov
760332262d
Add more assertions to `deltachat-ffi' library
...
Change code to panic! on invalid input (null pointers, out-of-range
identifiers) instead of silently doing nothing.
2019-08-07 20:36:00 +02:00
Dmitry Bogatov
bc2314586c
Avoid unstable `inner_deref' feature
2019-08-07 20:31:02 +02:00
Dmitry Bogatov
765ac2005e
Change type of dc_msg_t.text to String
...
Also, remove `send-garbage' command from REPL, since it is not possible to send
non-utf8 string anymore.
2019-08-07 20:31:02 +02:00
Dmitry Bogatov
d4650ba4a9
Add Rust clone of python `prepare_and_send' test
...
Previous version of patch, that changed type of `dc_msg_t.text' to String had
been breaking `prepare_and_send' test in Python.
This commit adds same regression test, reimplemented in Rust, since running
Rust tests is simplier and faster.
2019-08-07 20:31:02 +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
Dmitry Bogatov
4d9bd46c9d
Add note about possible cause of lost messages
2019-08-06 22:09:43 +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