Commit Graph

3223 Commits

Author SHA1 Message Date
B. Petersen 7003fcb018 update deltachat-core-rust submodule 2021-02-11 16:18:26 +01:00
Hocuri 3b8f3e7628 Show the correct sender name in mailing list messages 2021-02-10 21:33:18 +01:00
B. Petersen 406bb9a6ee update translations 2021-02-10 15:54:55 +01:00
B. Petersen 097da7c165 show name of forwarded in groups, keep title of forwarded messages in grey 2021-02-10 15:50:10 +01:00
B. Petersen ee33cdb7bc update deltachat-core-rust submodule 2021-02-10 15:48:22 +01:00
B. Petersen bc35150125 update translations 2021-02-08 14:44:00 +01:00
B. Petersen e1029eaeb9 update deltachat-core-rust submodule 2021-02-08 12:06:18 +01:00
B. Petersen deda646952 update translations 2021-02-08 00:25:51 +01:00
B. Petersen c14a864bf0 update translations 2021-02-07 23:51:39 +01:00
B. Petersen c84abad36e update deltachat-core-rust submodule 2021-02-07 23:41:29 +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 4a9e4d17bc update translations 2021-02-07 20:35:35 +01:00
B. Petersen 6ee32bf490 update deltachat-core-rust submodule 2021-02-07 20:33:29 +01:00
B. Petersen 9f2be9c56c use dc_get_chat_encr_info() where useful 2021-02-07 20:32:51 +01:00
B. Petersen 44b0739f6c make profile-menu easier editable, show 'Encryption' item also in groups 2021-02-07 20:32:51 +01:00
B. Petersen 0efd4154ea update scripts/grep-string.sh to ignore more generated files 2021-02-06 17:32:25 +01:00
Hocuri b645dc60a0 Improve performance and make sure that there is no race condition
add a static boolean doReinitializeDraft that is set to true in onPause() if this activity was started using startActivityForResult(). in onResume(), do if(doReinitializeDraft) { initializeDraft(); }.
2021-02-05 22:32:50 +01:00
Hocuri cd5f0c212c Fix disappearing drafts
Some people reported that drafts were disappearing, and I found a way to
reproduce it (my interpretation in brackets):
- Open Saved Messages chat, could be any other chat too
- Go to another app and share to DC
- In DC select Saved Messages
  - (as sharing is done using startActivityForResult(), a second
  ConversationActivity is created without affecting the existing one)
- Leave DC. (The second ConversationActivity will correctly save its
draft to the db)
- Open DC again from the "Recent apps". (The first ConversationActivity
will be loaded. It will not know that there is a newer draft and still
show the old draft, or nothing if there was none. When it's closed, it
will overwrite the draft)

I came to this conclusion by logging all writes to the draft in the db.
Also, when I set `REQUEST_RELAY` to -1 (`startActivityForResult(intent,
-1) will behave the same as `startActivity(intent)`) (but that's not a
solution, sometimes we need startActivityForResult(), see e.g.
https://github.com/deltachat/deltachat-android/pull/1412)

What's still a little weird: I tried replacing all calls to
`startActivityForResult(-intent for ConversationActivity-)` with
startActivity(), and the issue didn't go away. Apparently it's only
enough if all calls are replaced, which is the same as setting
`REQUEST_RELAY` to -1. Maybe it's enough if one activity in the call
chain is called using startActivityForResult().

The call to `initializeDraft()` makes the activity start & resume 2-3ms
slower, which is probably acceptable.

While going back and forth with activities & sharing, I also encountered
some more bugs (without trying to reproduce them), but they are not too
annoying (as opposed to losing your draft) and I'm hesitant to changing
the activity-switching logic too much as it is so easy to just break
things again.
2021-02-05 22:32:50 +01:00
B. Petersen f03c8a5062 update translations 2021-02-03 13:55:01 +01:00
B. Petersen 5dbe4bc9e2 update local help 2021-02-03 13:36:36 +01:00
link2xt 9e610e5d4b Replace 4 weeks option with 5 weeks option
While 4 weeks always fits in a month,
5 weeks (35 days) always covers at least a month,
so it can be used in a situation where messages are required to
be stored for a month.
2021-02-03 13:34:05 +03:00
B. Petersen 370335bf6e update translations 2021-01-30 23:34:14 +01:00
B. Petersen 90bb1eb559 add comments on ephemeral-timer-indexes 2021-01-31 00:45:13 +03:00
link2xt f155757cee Change list of ephemeral message options
Also match unknown options to some known option, not "disabled".
2021-01-31 00:45:13 +03:00
B. Petersen cdfc9cf7c0 update translations 2021-01-29 15:29:05 +01:00
B. Petersen f593f27d98 harden WebView settings 2021-01-29 15:25:23 +01:00
B. Petersen 74cdd85815 add pinch-to-zoom options to message-html-view 2021-01-29 15:25:23 +01:00
B. Petersen 49c507b74c update translations 2021-01-28 23:10:19 +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 c0f590c59e update deltachat-core-rust submodule 2021-01-28 22:07:08 +01:00
bjoern 3130b8093b Merge pull request #1774 from deltachat/remove-get-first-name
adapt to removed dc_contact_get_first_name() api
2021-01-24 15:11:41 +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
Alexander Krotov 94e5b0d702 Build preview APKs for all architectures 2021-01-23 01:22:22 +03:00
Asiel Díaz Benítez 79dd7db909 Merge pull request #1773 from adbenitez/adb-build-apk-action
add preview-apk workflow
2021-01-22 17:01:56 -05:00
B. Petersen 3a7443a91d update translations 2021-01-22 22:40:38 +01:00
adbenitez 2d3d567f12 add preview-apk workflow 2021-01-22 16:02:04 -05: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
B. Petersen 5a2d742bdf update translations 2021-01-11 17:44:53 +01:00
B. Petersen b024c17f66 update deltachat-core-rust submodule 2021-01-11 17:42:34 +01:00
Hocuri a96aa2ff48 Show controls on small screens
Using both `setMessage()` and `setView()` on the same AlertDialog,
on small screens the "OK" and "Cancel" buttons were not be show. So, put the
message into our custom view.
2021-01-03 12:25:53 +01:00
B. Petersen 971c7e1d68 update translations 2020-12-27 16:46:24 +01:00
B. Petersen 88f706f95b bump version to beta-series, mark version as such 2020-12-22 14:44:54 +01:00
B. Petersen fa80ede3ac update translations 2020-12-22 13:55:58 +01:00
bjoern c0027d750a Merge pull request #1758 from deltachat/darkmode-follow-system
Dark theme / DayNight: Add option to follow system
2020-12-22 13:22:42 +01:00
B. Petersen 5c034c6e59 add comments in duplicated files 2020-12-22 13:22:05 +01:00
Hocuri 1ff6a3a18d Dark theme / DayNight: Add option to follow system
fix maybe #1748. Maybe not, because actually I don't understand why
issue #1748 even happened because we don't use the system background for
the bubble but an own one (see conversation_item_sent.xml:50). Probably
the system is somehow trying to forcefully create a dark mode.

So, let's see whether this PR fixes the issue, if not, I'll try again.
2020-12-19 19:51:55 +01:00
B. Petersen 450442ef60 update translations 2020-12-19 16:04:44 +01:00
Hocuri cfea049418 Always release the media player before setting it to 0
I can't tell if it helps, I personally was able to both play a 60min
audio and to play 32 voice messages after each other. Shouldn't hurt to
release them, though.

I tested my change, and at least it seems not to worsen anything.
2020-12-19 12:07:06 +01:00
bjoern b8ca7ed00d Merge pull request #1754 from deltachat/add-missing-button
add missing button to new error-dialog
2020-12-14 22:04:35 +01:00
B. Petersen f608fe0766 add missing button to new error-dialog
following common ui expectations,
there must always be at least one "ok" button
in a dialog or alert.
2020-12-14 13:16:24 +01:00