Commit Graph

3889 Commits

Author SHA1 Message Date
adbenitez 0fcc6f4661 Merge remote-tracking branch 'upstream/master' 2021-08-04 16:08:57 -04:00
bjoern 726f751cac keep selection when migrating several accounts (#2011)
postpone selection after the last migration
as migrateAccount() currently selects the migrated account.

before, the selectAccount() call was useless
if another migrateAccount() call follows.
2021-08-04 15:05:45 +02:00
Asiel Díaz Benítez 9be90a589e avoid NullPointerException (#2013) 2021-08-04 15:05:33 +02:00
adbenitez 97df2ceea5 Merge remote-tracking branch 'upstream/master' 2021-08-03 04:15:28 -04:00
B. Petersen 3d3b1cc03f typo 2021-08-03 01:11:01 +02:00
bjoern 99963ee605 prepare 1.21.1 testrun 🏃 (#2010)
* update changelog for 1.21.1

* bump version to 1.21.1
2021-08-02 23:52:09 +02:00
B. Petersen 7f09ea237d update deltachat-core-rust submodule 2021-08-02 21:57:42 +02:00
bjoern aa1909e519 prepare 1.21.0 (#2009)
* update changelog to 1.21.0

* bump version to 1.21.0
2021-08-02 10:40:18 +02:00
bjoern 0995930636 unify buttons (#2007)
* use standard button style for block/accept

* make existing buttons a little bit nicer

* make 'login' button more outstanding, esp. in dark-mode, where colors are tuned down for now
2021-08-02 10:38:14 +02:00
Asiel Díaz Benítez 099f76a90b set dynamic theme in welcome activity (#2008) 2021-08-02 00:20:34 +02:00
adbenitez cec9a5e5b1 Merge remote-tracking branch 'upstream/master' 2021-08-01 17:41:27 -04:00
Asiel Díaz Benítez 13dbb3f87c avoid showing compose panel when pressing block button (#2004)
* stop observing DC_EVENT_CONTACTS_CHANGED events before blocking chat so the input bar is not made visible in handleEvent()

* add comment about removing DC_EVENT_CONTACTS_CHANGED observer on blocking

Co-authored-by: B. Petersen <r10s@b44t.com>
2021-08-01 23:29:22 +02:00
Asiel Díaz Benítez 464c30129f update archived chatlist when contact request is blocked, set intent so conversationListFragment can find RELOAD_LIST in extras (#2003) 2021-08-01 22:26:19 +02:00
B. Petersen 474a40f6b7 update help 2021-08-01 22:05:27 +02:00
B. Petersen 1c2ed86e24 update translations 2021-08-01 22:04:50 +02:00
B. Petersen 7e4a94e9aa update deltachat-core-rust submodule 2021-08-01 21:10:01 +02:00
adbenitez 0a72a96c0a Merge remote-tracking branch 'upstream/master' 2021-07-31 16:22:17 -04:00
Asiel Díaz Benítez 6bd46a8532 Merge pull request #1985 from deltachat/use-accounts-api
use dc_accounts_t
2021-07-31 16:19:33 -04:00
bjoern 06353ef64d fix potential race condition in chatlist loading (#2001)
this should fix the race condition mentioned at #2000
and in the source code by synchronizing getters/setters of the booleans.
2021-07-31 21:24:20 +02:00
bjoern 6de566ac11 fix chatlist anr (#2000)
* revert unneeded changed introduced at #1975 - the timer is to update relative timestamps, data reloading is not needed and driven by events

* load chatlist async

* debounce chatlist loading

* add comment to the code
2021-07-31 13:56:39 +02:00
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
bjoern 6d8da07409 Update src/org/thoughtcrime/securesms/connect/AccountManager.java
Co-authored-by: Hocuri <hocuri@gmx.de>
2021-07-28 16:53:03 +02:00
bjoern a6490bf4cb Update src/org/thoughtcrime/securesms/connect/AccountManager.java
Co-authored-by: Hocuri <hocuri@gmx.de>
2021-07-28 16:52:54 +02:00
B. Petersen 1c4b06c501 int can't be @Nullable 2021-07-28 16:44:28 +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
B. Petersen c94ec36814 remove superfluous string (that change was lost during rebase) 2021-07-27 00:17:16 +02:00
B. Petersen 7959053429 process events belonging to current context only 2021-07-26 21:37:33 +02:00
B. Petersen 0f7984442a adapt AccountsManager to DcAccounts 2021-07-26 21:37:32 +02:00
B. Petersen 634c8d1e49 use accounts event emitter 2021-07-26 21:37:32 +02:00
B. Petersen 78cd6cd8e8 create DcAccounts object on startup, migrate existing accounts 2021-07-26 21:37:32 +02:00
B. Petersen c661cc8385 remove unneeded declarations of ApplicationDcContext 2021-07-26 21:37:32 +02:00
adbenitez 221956f62e Merge remote-tracking branch 'upstream/master' 2021-07-26 14:18:41 -04:00
B. Petersen 1d9a6375be always get DcContext via DcHelper 2021-07-26 18:41:42 +02:00
B. Petersen b28a62a1ea remove functions from subclassed DcContext
the functions were part of ApplicationDcContext for no special reason,
however, now standing in the way of avoiding subclassing DcContext
(to use the DcContext objects returned from DcAccounts directly).
2021-07-26 18:41:42 +02:00
B. Petersen 4c679053b9 add dc_accounts_t api to JNI 2021-07-26 18:37:49 +02: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