Commit graph

149 commits

Author SHA1 Message Date
B. Petersen
4901d7c68f add getStatus() api 2021-03-09 01:59:17 +01:00
Hocuri
f6a5a24165 Use the message subject as the full-msg-view title
For long subject it's ellipsized (`…`) now, but I think that there is no need to show the full subject somewhere, it usually doesn't contain _that_ important information and can be seen in full in the normal chat view
2021-03-07 17:40:22 +01:00
bjoern
05287b50bf
remove dead code (#1820)
the number of blocked contacts is just the size of the array returned by getBlockedContacts()
2021-02-22 16:24:49 +01:00
Hocuri
3b8f3e7628 Show the correct sender name in mailing list messages 2021-02-10 21:33:18 +01:00
bjoern
c814885f5c
mailinglists3 (#1781)
* Adapt to mailing lists

* Change the question if this is a mailing list (untested)

* rm unused fn

* Adapt to getSenderName -> getOverrideSenderName (untested)

* Use dc_msg_get_sender_first_name() because sometimes the first name was not correctly shown in mailing lists

* Don't let the user modify mailing list groups

* Fix crash

* Make Unnamed newsletter translatable, make the subtitle of mailing lists "Mailing list"

* tweak and hide some controls for mailing lists

* Update src/com/b44t/messenger/DcChat.java

Co-authored-by: bjoern <r10s@b44t.com>

* adapt to new dc_msg_get_real_chat() api, remove dc_msg_get_sender_first_name()

* remove now dead code

* add mailing list name to contact-request-question

move question-creation to a helper class
to avoid duplicated code.

* fix DcMsg.getOverrideSenderName()

* adapt to new dc_decide_on_contact_request() api

* re-allow changing name+image for mailinglists, see recent discussions on PRs

* remove memberlist- and settings-tab from mailinglist profile until there is some use for them

* adapt to new DC_CHAT_TYPE_MAILINGLIST type

Co-authored-by: Hocuri <hocuri@gmx.de>
2021-02-07 23:39:48 +01:00
B. Petersen
9f2be9c56c use dc_get_chat_encr_info() where useful 2021-02-07 20:32:51 +01:00
bjoern
8d9c02dd7a
add option to view full (html) message (#1763)
* add get-mime-original apis

* remove unused control

* add 'Show full message' buttons

* split reusable WebViewActivity from LocalHelpActivity

* add FullMsgActivity

* load html via AsyncTask

* adapt to changed api

* handle mailto:-links in WebView

* block loading remote images by default, add user setting always/once/never

* do not hide 'Once' button in always-mode, playing around a day with hidden 'Once' that looks more like a bug :)

* wording: as 'Always' affects all messages, it is better to speak of multiple senders

* wording: use 'Load remote images'

this makes it easier for the user to find the option
if one sees, images are missing in the document.

* wording: shorten text.

* wording: change 'may' to 'can'. 'may' sounds a bit as if someone allows this.

* Don't use AsyncTask

* check 'once' if appropriate

* use lite-colored checkbox-emoji in dark-theme

* add comment about missing error logging

Co-authored-by: Hocuri <hocuri@gmx.de>
2021-01-28 22:53:15 +01:00
B. Petersen
3914bf7ff4
adapt to removed dc_contact_get_first_name() api
use dc_contact_get_display_name() instead
2021-01-23 19:52:23 +01:00
B. Petersen
5371f312ac remove unused isIoRunning() api
the api is about to be removed from core as well,
see https://github.com/deltachat/deltachat-core-rust/pull/2139
2021-01-15 06:49:39 +03:00
Hocuri
45aa3e5b82 Directly show error on msg tap
fix #1749
2020-12-13 18:06:44 +01:00
Hocuri
99d52f0be2
Remove updateDeviceChats (see https://github.com/deltachat/deltachat-core-rust/pull/1957) 2020-10-16 10:22:40 +02:00
B. Petersen
dde0247681
adapt to new protect-api 2020-10-13 22:07:08 +02:00
Hocuri
c720df5d5c Add swipe-to-reply quotes 2020-10-11 22:09:51 +03:00
B. Petersen
25ad9973af
catch new DC_EVENT_MSGS_NOTICED as needed 2020-09-25 22:41:08 +02:00
Alexander Krotov
e407a0dc53 Expand tabs in dc_wrapper.c 2020-09-15 23:57:22 +03:00
Alexander Krotov
cd48e56af4 Add EditorConfig
It documents indentation style for source files.

See https://editorconfig.org/ for more.
2020-09-15 22:23:44 +03:00
B. Petersen
6b11b60b84
add new videochat apis 2020-07-29 14:00:01 +02:00
Alexander Krotov
31e6b94683 Add ephemeral message timer API 2020-06-29 23:55:18 +03:00
Alexander Krotov
c877930b73 jni: use dc_array_get_id instead of dc_array_get_raw
dc_array_get_raw API prevents Rust code from storing IDs in other format
than an array of uint32_t.
2020-06-24 23:21:32 +03:00
B. Petersen
6738b0d477
remove 'Delete emails from server' experiment, the function is superseded by 'Auto-delete messages' 2020-06-10 19:47:07 +02:00
B. Petersen
47f7ceb986
fix crash on context-unref due to typo
this issue is older, however, by the explicit unref() call now more visible.
but also in the past, this could have led to random crashes
after account switching.
2020-05-27 21:45:13 +02:00
B. Petersen
1d8397adc9
use new event system 2020-05-27 16:12:49 +02:00
B. Petersen
cd8f8d1ede
add new event and event-emitter classes 2020-05-27 16:12:48 +02:00
B. Petersen
8fd3b374c2
use start/stop io 2020-05-27 16:12:48 +02:00
B. Petersen
d42eb1d920
get rid of open/close context 2020-05-27 16:12:48 +02:00
Hocuri
40e24c3a39
Start transitioning to the mute functions of the core 2020-05-20 23:51:25 +02:00
B. Petersen
0f4bd6347f
stop threads and call close() on switching account
the imap-/mvbox-/sentbox-/smtp-threads needs to be terminated
before dc_close() can be called successfully.

if this is not done, they are hanging around, and, even worse,
if an account is opened _again_, there are now two threads
working on the database which lead to duplicated messages.

note, that this issue is only related to duplicated messages
if ever an account was selected, which, however, might be the same as the current.
2020-04-24 01:56:07 +02:00
B. Petersen
9b1173b324
garbage collect unused DcContext objects 2020-04-16 12:19:46 +02:00
B. Petersen
922a5c044f
show number of messags that will be affected by deletion 2020-03-28 22:01:47 +01:00
B. Petersen
ab81e480ee
adapt to new api 2020-02-15 00:35:04 +01:00
B. Petersen
1bec6958dc
call dc_set_config_from_qr() when getting a DC_QR_ACCOUNT qr code 2020-02-11 00:50:20 +01:00
B. Petersen
d1404e346f
adapt provider-db api 2020-01-24 00:27:42 +01:00
B. Petersen
a054acd3c9
check device-messages after configure and on each chatlist-opening 2019-12-03 11:39:10 +01:00
B. Petersen
1b9e2c4da3
add provider-info api 2019-11-30 20:42:19 +01:00
B. Petersen
6487443ab8
adapt to new api 2019-11-20 00:10:09 +01:00
B. Petersen
ce2b7287d9
fix wrapper compiler warning 2019-11-14 20:48:23 +01:00
B. Petersen
7571aac0cc
adapt to device-messages api 2019-11-06 00:19:11 +01:00
B. Petersen
dbac064965
re-enable empty-server controls 2019-10-30 11:22:39 +01:00
B. Petersen
84d0f38364
target bad pointer type warnings 2019-10-23 03:39:26 +02:00
B. Petersen
a3fd0e6880
target const-warnings 2019-10-23 03:38:50 +02:00
B. Petersen
2feedb9444
add missing includes to jni, without them, args default to int which fails on 64bit. for whatever reason, the android compiler does not throw a warning. 2019-10-23 02:28:02 +02:00
B. Petersen
7701354044
hack around utf-8 issues on android4 2019-10-20 15:48:31 +02:00
B. Petersen
212be90951
move GetStringUTFChars() to a function 2019-10-20 15:00:23 +02:00
B. Petersen
12b12087a1
remove getSubtitle() hack 2019-10-10 21:47:10 +02:00
B. Petersen
c2dd7b7e95
let deltachat-core release strings previously returned 2019-10-09 23:24:04 +02:00
B. Petersen
6e07439c33
set stock translations usign new api 2019-10-09 23:15:21 +02:00
B. Petersen
2a06910bf1
call dc_perform_mvbox|sentbox_jobs() 2019-10-05 19:15:56 +02:00
B. Petersen
1e37d23182
disable dc_empty_server() for now 2019-10-02 22:17:15 +02:00
B. Petersen
5a502bd286
resolve-conflict 2019-10-02 21:58:42 +02:00
B. Petersen
ee66f09f7b
adapt to new dc_array_get_raw() api 2019-08-14 23:36:39 +02:00