Commit Graph

3857 Commits

Author SHA1 Message Date
adbenitez 195c71af9a Merge remote-tracking branch 'upstream/master' 2021-07-30 19:19:23 -04:00
Asiel Díaz Benítez 72acc5fffc separate request and archive badges (#1997) 2021-07-30 12:43:10 +02:00
adbenitez d7620a817a Merge remote-tracking branch 'upstream/master' 2021-07-29 22:25:27 -04:00
bjoern a7d6dda1a3 hide question from request panel for now (#1996)
* hide question from request panel for now, if needed we can do something more specific in the future

* remove 'Done' toast to avoid problems with lost activity

for whatever reason,
i just got a crash related to the toast that could not find its activity,
probably we should have used the app context and not the activity.

however, the toast was annoying me already,
there is no point in adding it, the change is visible instantly to the user
on the screen.
2021-07-29 23:36:16 +02:00
bjoern 2e9f7e58f2 tweak 'Archived Chats' and 'Requests' (#1991)
* add 'Archived Chats' menu entry

the menu entry is at the place where the 'Contact Requests' were before -
that way, ppl may find existing contact requests easier.

moreover, it is now possible to access 'Archived Chats'
without endless scrolling ;)

* for archived requests, show both tags

* show a hint when 'Archived Chats' is empty

* contact requests do not display unread count; do not retrieve it and do not show text in bold
2021-07-29 10:18:51 +02:00
adbenitez 2ca65a39d3 Merge remote-tracking branch 'upstream/master' 2021-07-28 21:39:32 -04:00
B. Petersen 2d6459bddf update deltachat-core-rust submodule 2021-07-28 18:30:41 +02:00
B. Petersen 3d4bac8e9a update deltachat-core-rust submodule 2021-07-28 15:22:18 +02:00
B. Petersen 129e7e34b8 update deltachat-core-rust submodule 2021-07-28 15:05:29 +02:00
B. Petersen 8006b68c7a update translations 2021-07-28 15:05:15 +02:00
adbenitez 30a92fe63d fix automatic dark mode for themes 2021-07-28 01:46:33 -04:00
adbenitez 1402f5a726 Merge remote-tracking branch 'upstream/master' 2021-07-27 20:41:40 -04:00
B. Petersen 531af69c9e update deltachat-core-rust submodule 2021-07-27 15:53:06 +02:00
adbenitez 221956f62e Merge remote-tracking branch 'upstream/master' 2021-07-26 14:18:41 -04:00
B. Petersen 974e3b4f4e update translations 2021-07-26 15:08:14 +02:00
B. Petersen 44a4e7825e update deltachat-core-rust submodule 2021-07-26 13:11:33 +02:00
Hocuri f941fd3c53 Remove Deaddrop chat (Android UI) (#1975)
See deltachat/deltachat-core-rust#2514

Fixes #1963
Fixes #1890

Before deleting a chat the user is asked for confirmation. Before blocking not, because blocking is not "destructive" (i.e. can be completely reverted by unblocking the contact). I'm wondering whether we should show a snackbar with an Undo button though, but we can probably wait for user feedback on this.

* Start removing deaddrop chat

* Generally works

* Fix the buttons

(it's not easy to not show one of the buttons in
ConstraintLayout; if problems turn up, we should probably
just not use ConstraintLayout)

* fix more things

* restartLoader() instead of notifyDataSetChanged() because the latter didn't do anything

* Archived badge

* Rename "Contact request" to "Request"

* oops

* Remove setStockTranslation(8, context.getString(R.string.chat_contact_request));

* Remove commented-out code, we probably won't need it

* Don't show "Delete" button for 1:1 chats

* Get rid of short flickering when declining a request

* Set the app's night mode to match the preference

This added 6ms to startup time, but I think that's OK, as
we will also be able to use more `-night` views in the future

* Make "Accept" text a bit brighter and easier to read in dark mode

* Check if the chattype is Group instead of members.length == 1
2021-07-26 13:01:59 +02:00
Hocuri 79cad60b8f Speedup first-time app load a bit (#1988)
I couldn't measure whether the app actually loads faster, as it varies a
lot (3.5s-4.5s on my device), but I could see that `getInstance()`
doesn't need 100ms-300ms on the main thread anymore.
2021-07-26 10:44:07 +02:00
B. Petersen 7dd8bb6bb5 update translations 2021-07-25 23:21:34 +02:00
Hocuri b1db770f5f Speedup returning to chatlist a bit (#1987)
When working on
https://github.com/deltachat/deltachat-android/pull/1975, I noticed that
synchronisation takes quite some time here
2021-07-25 09:17:24 +02:00
adbenitez 532ba23287 Merge remote-tracking branch 'upstream/master' 2021-07-24 16:05:36 -04:00
B. Petersen 6df933195a update translations 2021-07-23 08:33:11 +02:00
Asiel Díaz Benítez a74d124ee5 allow only one line of text in title bar (#1986) 2021-07-23 08:28:26 +02:00
bjoern 3cbaafb437 use 'Updating…' instead of 'Getting new messages…' (#1984)
- 'Getting new messages…' is not always fitting,
  the messages may be old or they are not visible as messags at all
  (read receipts, setup-contact, sync).
  'Updating…' is better fitting here.

- 'Getting new messages…' is a bit too long and results in
  linebreaks on smaller devices.
2021-07-23 08:27:57 +02:00
adbenitez 81a275343b Merge remote-tracking branch 'upstream/master' 2021-07-22 14:11:38 -04:00
B. Petersen 61825a5924 update translations 2021-07-22 12:00:49 +02:00
B. Petersen a1ae235202 update deltachat-core-rust submodule 2021-07-22 11:59:40 +02:00
adbenitez ca05afc0af update version name 2021-07-21 21:24:27 -04:00
adbenitez 37d5d3ed97 improve zhv 2021-07-21 21:23:25 -04:00
Michael Mc Donnell 36c395633a Fix SELinux build issue with :z suffix (#1982)
Podman and docker require the `:z` suffix if running on system where SELinux is enabled (like
Fedora 34). See the follwing links for more information:

 - https://bugzilla.redhat.com/show_bug.cgi?id=1984457
 - https://unix.stackexchange.com/questions/651198/podman-volume-mounts-when-to-use-the-z-or-z-suffix
 - https://stackoverflow.com/questions/35218194/what-is-z-flag-in-docker-containers-volumes-from-option
2021-07-21 22:46:52 +02:00
adbenitez 0e82c24d25 Merge remote-tracking branch 'upstream/master' 2021-07-21 15:49:39 -04:00
Asiel Díaz Benítez 983db8cd31 Merge pull request #1980 from deltachat/dotless-domain-support
add yggmail support: allow dotless email address and localhost server
2021-07-21 12:59:35 -04:00
B. Petersen a14a7f4548 use 'E-Mail' when in a title context 2021-07-21 13:45:47 +02:00
bjoern 4960a2609e capitalize some strings (#1979)
* capitalize some strings

as discussed several times on different channels,
nowadays, it is more usual to use capitalized titles;
fitting better to existing environments.

this pr capitalizes menu entries, buttons and titles;
"titles" include all name of all settings.

whats left lowercase (just to have a clear focus):
- states
- values
- whole sentences
- titles mentioned in whole sentences

(nb: there is the rough idea of having something as "Group or Subject"
instead of just "Group" -
this change is also easier with the new capitalisation rules ;)

as this all does not affect other languages
(they have their own rules),
we should be careful not to force re-translations.

* fix typos
2021-07-21 13:35:54 +02:00
B. Petersen 7b99cacde5 update translations 2021-07-21 13:35:30 +02:00
adbenitez 5e93b89ff4 add yggmail support: allow dotless email address and localhost domain 2021-07-21 02:09:56 -04:00
adbenitez 33f64e5d87 Merge remote-tracking branch 'upstream/master' 2021-07-20 23:44:19 -04:00
Asiel Díaz Benítez 1f23a5ad1b Merge pull request #1970 from deltachat/set-clipboard-with-utils
avoid code duplication, use Utils.writeTextToClipboard() everywhere
2021-07-19 12:43:50 -04:00
bjoern 7da9d1026f use translated string for 'Video chat instance' (#1978) 2021-07-19 14:55:57 +02:00
B. Petersen 07c3623275 udpate translations 2021-07-19 14:53:30 +02:00
B. Petersen 844ff27518 update translations 2021-07-19 11:32:25 +02:00
bjoern 2105c500ce consider multi-device usage on withdraw/revive QR code wordings (#1977)
in a multi-device-setup,
if deviceB scans a setup-contact QR code shown on deviceA,
it is misleading to say that the QR code was withdrawn
and can be revived.
actually, the QR code was never withdrawn by the user.

this is fixed by this pr.
(at some point, we want to sync QR codes across devices,
but even then, there may be siutuations where things are not in sync)

moreover,
the wording is more explicit about what is usually done with the qr code;
this is esp. helpful, when scanning a printed QR code without much context.
2021-07-19 10:47:22 +02:00
adbenitez 274a62f889 Merge remote-tracking branch 'upstream/master' 2021-07-15 18:03:26 -04:00
Asiel Díaz Benítez 214f11a62f Merge pull request #1968 from deltachat/adb-issue-1967
avoid NullPointerException in DcMsg.msgSetToIds()
2021-07-15 18:02:57 -04:00
Asiel Díaz Benítez f0290649f4 Update src/com/b44t/messenger/DcMsg.java
Co-authored-by: bjoern <r10s@b44t.com>
2021-07-15 17:56:10 -04:00
adbenitez b7924a1f6d Merge remote-tracking branch 'upstream/master' 2021-07-15 17:46:16 -04:00
B. Petersen 6c48233005 update translations 2021-07-15 17:14:47 +02:00
Asiel Díaz Benítez 4dce3734ff apply app/system theme to WebView (#1972) 2021-07-15 16:46:09 +02:00
B. Petersen 623976424e update deltachat-core-rust submodule 2021-07-15 13:25:53 +02:00
Hocuri 7ad227f789 Hide unnecessary controls if you can't send (#1951)
- Imediately hide the compose panel when you left the group and
EVENT_CHAT_CHANGED was sent
- Hide the "Leave" button if you are not a member of a group. I solved
this by checking `canSend()`; I could also have checked
`dc_is_contact_in_chat(CONTACT_ID_SELF)`, but this would be more
complexity for now.

  When we add the possibility to leave mailing lists, the core will have
  to explicitly tell the UI whether it's possible to leave a chat, but
  that's not for now.
2021-07-15 13:25:11 +02:00