Commit Graph

2511 Commits

Author SHA1 Message Date
B. Petersen 3cafdaf57e allow fcm for all flavours 2024-05-07 15:34:50 +02:00
B. Petersen 256c010b61 add FcmReceiveService 2024-05-07 15:34:50 +02:00
B. Petersen c5b00c73b2 make anyways global DcAccounts accessible without context 2024-05-07 15:34:50 +02:00
B. Petersen c93cdc5898 move 'password and account' to advanced, together with folder settings 2024-05-06 16:17:33 +02:00
B. Petersen c74adafbc3 move 'show classic emails' to advanced; it is no longer a recommended option to take care of 2024-05-06 16:17:33 +02:00
Asiel Díaz Benítez 81b7df0f99 adapt to new "instant onboarding" UX workflow (#3015)
* rework onboarding

* implement default registration in InstantOnboardingActivity

* dismiss signInDialog after button is selected

* add footer options, implement "explore other options" button

* properly handly permissions results

* implement "scan QR" button

* fix linter warnings

* remove from observers in onDestroy()

* handle DCACCOUNT and DCLOGIN in InstantOnboardingActivity instead of WelcomeActivity

* fix identation in setProviderFromQr()

* rename DEF_CHATMAIL_HOST to DEFAULT_CHATMAIL_HOST

* Update src/org/thoughtcrime/securesms/InstantOnboardingActivity.java

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

* Update res/layout/instant_onboarding_activity.xml

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

* Update res/layout/instant_onboarding_activity.xml

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

* Update res/layout/instant_onboarding_activity.xml

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

---------

Co-authored-by: bjoern <r10s@b44t.com>
2024-05-06 08:32:35 -04:00
B. Petersen dc55b5c64c remove unused getAllLocations() API 2024-04-29 19:49:59 +02:00
B. Petersen 2dbdfe6f4a remove unused TransportOption functions 2024-04-29 19:49:59 +02:00
B. Petersen 487baf3a04 remove unused functions isManualSelection() and transportOptions.disableTransport() 2024-04-29 19:49:59 +02:00
B. Petersen 18d51b5468 remove unused class SearchRepository, move callback interface to SearchViewModel 2024-04-29 19:49:59 +02:00
B. Petersen 171e58e016 remove unused class Selectable 2024-04-29 19:49:59 +02:00
B. Petersen 55c8f93286 remove unused toReversePrimitiveArray() and ProgressDialogAsyncTask constructor 2024-04-29 19:49:59 +02:00
B. Petersen 1b371a1b72 remove unused KeyboardAwareLinearLayout.isBubble 2024-04-29 19:49:59 +02:00
B. Petersen 17cf9face0 remove unused QR code utilities 2024-04-29 19:49:59 +02:00
B. Petersen 9770e578c8 remove unused Util 2024-04-29 19:49:59 +02:00
B. Petersen 7c074c7b81 remove unused image utilities 2024-04-29 19:49:59 +02:00
B. Petersen df8115e7bb remove never instanciated AttachmentServer 2024-04-29 19:49:59 +02:00
B. Petersen 307bd3bdd7 mark method called by js as always used 2024-04-29 19:49:59 +02:00
B. Petersen 361e325d72 unify the flows of DCACCOUNT: and DCLOGIN: (that only differ wrt confirmation message) to avoid hickup as on desktop on the upcoming onboarding work 2024-04-29 16:30:24 +02:00
B. Petersen e27f592c07 remove unused relicts from Mapbox -> Leaflet move 2024-04-28 23:22:59 +02:00
Asiel Díaz Benítez 224201a77f fix openOnlineUrl(), mailto/openpgp4fpr has to open externally (#3008)
* fix openOnlineUrl(), mailto/openpgp4fpr has to open externally

* Update src/org/thoughtcrime/securesms/WebxdcActivity.java

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

* Update src/org/thoughtcrime/securesms/WebxdcActivity.java

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

---------

Co-authored-by: bjoern <r10s@b44t.com>
2024-04-27 18:00:58 -04:00
Asiel Díaz Benítez 217478e90b allow to pin, archive, etc. when searching in the chatlist (#3002) 2024-04-27 17:44:33 -04:00
B. Petersen 97b84e1959 don't say "Done" when we don't know we're done
adding a shortcut is sometimes a request only,
the user has to confirm and/or there is a subsequent dialog.

so, when `requestPinShortcut()` returns successfully,
saying "Done" as the result of "Add to Home Screen" is often wrong
from the view of the user.

however, some feedback is still needed for the cases there are no dialogs.

saying "One moment..." covers both cases sufficiently.
2024-04-27 22:44:56 +02:00
Asiel Díaz Benítez 9eaf8bb1f3 use new experimental maps integration (#3005)
* use new maps integration

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

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

* Update src/org/thoughtcrime/securesms/WebxdcActivity.java

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

* fix typo

---------

Co-authored-by: bjoern <r10s@b44t.com>
2024-04-25 12:04:13 -04:00
B. Petersen cb084df369 remove unused imports 2024-04-25 16:59:40 +02:00
B. Petersen e422070bda simplify code by followingc linter hints 2024-04-25 16:59:40 +02:00
Asiel Díaz Benítez 01b3f339dd fix bug in WebxdcActivity: don't try to get iframe in "allow internet" mode (#3006)
* fix bug in WebxdcActivity: don't try to get iframe in "allow internet" mode

* Update src/org/thoughtcrime/securesms/WebxdcActivity.java

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

* properly clear proxy in "allow-internet" mode

---------

Co-authored-by: bjoern <r10s@b44t.com>
2024-04-25 09:45:19 -04:00
Asiel Díaz Benítez b0be653ded allow to open troubleshooting menu option directly from offline help (#2997)
* allow to open troubleshooting menu option directly from offline help

* add comment

* Update src/org/thoughtcrime/securesms/PassphraseRequiredActionBarActivity.java

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

---------

Co-authored-by: bjoern <r10s@b44t.com>
2024-04-24 07:46:55 -04:00
Asiel Díaz Benítez 7afef221a1 support request_internet_access again (#2988)
* support request_internet_access again

* don't set fake proxy for apps with internet access

* remove unnecessary imports and Rpc instance
2024-04-24 06:27:33 -04:00
link2xt 430c15861a Replace Signal's getFileDescriptorOwner with K-9's SafeContentResolver (#2976) 2024-04-13 18:52:37 +00:00
B. Petersen 0f47e90dd0 add support for reaction summaries 2024-04-04 14:27:35 +02:00
bjoern c5077338f9 add strings needed by core to show reactions in summaries (#2985) 2024-04-03 11:14:37 +02:00
bjoern 2faf7a640f react with any emoji (#2979)
* add button to select any reaction

* add emojipicker to build.gradle and manifest

* fix build error

* open reaction picker and send any reaction

* use RelativeLayout as parent for EmojiPickerView

* dismiss AlertDialog on emoji-selection

* reduce columns to 8 like on iOS

* disable "more reactions" button in android < 5

* show selected reactions instead of '...', this is what whatsapp, signal are doing

* make '...' a bit less bold in light mode

---------

Co-authored-by: adbenitez <asieldbenitez@gmail.com>
2024-03-27 12:33:13 -04:00
bjoern 5c930baa0d remove dead code (#2981)
* minSdkVersion is 16, remove checks that are always true or false

* VideoView was used for SDK<16 only
2024-03-22 15:57:28 +01:00
B. Petersen 84d8f383b6 draft a device message 2024-03-07 13:01:34 +01:00
bjoern 965021d243 start/stop IO no longer needed on config changes (#2959)
this is done by core as needed since https://github.com/deltachat/deltachat-core-rust/pull/5117
2024-02-14 15:14:05 +01:00
Asiel Díaz Benítez 54692e977e add troubleshooting menu option on the scanner side (#2958)
* add troubleshooting menu option on the scanner side

* Update src/org/thoughtcrime/securesms/qr/RegistrationQrActivity.java

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

---------

Co-authored-by: bjoern <r10s@b44t.com>
2024-02-14 11:19:14 +01:00
Hocuri 81b321f740 Add self-reporting button (#2910)
Depends on https://github.com/deltachat/deltachat-core-rust/pull/5129

Part of https://github.com/deltachat/deltachat-android/issues/2909
2024-02-07 20:23:55 +01:00
bjoern 71cd0e0c1f make 'Read Address Book' a per-account option (#2955)
this fits better to chatmail:
- one can have chatmail=OFF and normal-mail=ON
- new accounts are most often chatmail,
  even if there is a normal-mail account,
  and get the setting OFF,
  which is better in most cases
2024-02-06 22:28:54 +01:00
bjoern 1b6b216d98 catch errors thrown by Uri.parse() to avoid crashes on tapping invite links (#2951) 2024-02-01 10:10:10 +01:00
bjoern 8cb9d42750 add an option to 'Read System Address Book' (#2950)
with chatmail, providers exist that allow to send encrypted mails only.
pulling in the system address book unconditionally for chatmail will harm UX
as for most of these addresses,
no public key will be known until eg. a QR code is scanned.

we may think this over in the future.
note, that one usually also can create a Delta Chat chat from the address book,
so, this works also without having Delta Chat pulled in all addresses
(which has some issues, https://github.com/deltachat/deltachat-android/issues/2923 )
2024-02-01 09:34:15 +01:00
Asiel Díaz Benítez f2051888f2 handle in-chat clicks to invite-URLs (#2949)
* handle in-chat clicks to invite-URLs

* improve isInviteURL()
2024-02-01 01:29:40 -05:00
Asiel Díaz Benítez f207251f11 copy invite links to clipboard (#2943)
* copy invite links to clipboard

* rename INVITE_PAGE to INVITE_DOMAIN

* share link together with QR image, improve QR image

* share invite-URL instead of QR image

* 'Load QR code from image' is no longer a recommended workflow

the primary UI works with invite-links now.
'Load QR code from image' is still supported,
but is tuned down as no longer recommended workflow.

---------

Co-authored-by: B. Petersen <r10s@b44t.com>
2024-01-31 09:26:15 -05:00
Asiel Díaz Benítez 9a2968d502 allow to mute/unmute from chatlist (#2948) 2024-01-31 09:22:39 -05:00
Asiel Díaz Benítez 1388e1a996 add global unread messages badge counter (#2942)
* add global unread messages badge counter

* Update src/org/thoughtcrime/securesms/connect/DcEventCenter.java

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

* Update src/org/thoughtcrime/securesms/connect/DcEventCenter.java

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

* improve code

* use more specific names, remove from multiAccountObservers also in removeObserver()

---------

Co-authored-by: bjoern <r10s@b44t.com>
2024-01-30 23:28:28 -05:00
bjoern b5c172ced8 improve status message for "Invalid Unencrypted" (#2940)
* add strings for 'Invalid Unencrypted'

* add a 'learn more' dialog for 'invalid unencrypted'; the dialog shows the known 'scan qr code' and the known help for it

* clarify wording, add 'for this chat'

* do not linkify domains
2024-01-25 11:33:25 +01:00
bjoern 2e3a75c440 update welcome message (#2938)
* draft a new welcome-message with focus about how to get in contact; the 'Invite Link' implies also contacts with delta chat not installed yet (we could also add a QR code to the invite page as well as adding a 'Manual contact' that fits for classic mail)

* add some dc background info

* rename 'Device Talk' to 'Info'

* Revert "rename 'Device Talk' to 'Info'"

This reverts commit 027e205718c2923bc774a2d069f3283fc9e0e7bd.

* improve english grammar, thanks @adzialocha
2024-01-24 23:06:02 +01:00
Asiel Díaz Benítez 208e5f2bb1 remove old hack to update seen-recently indicator (#2932) 2024-01-21 19:02:21 -05:00
B. Petersen 4ca574b85e cleanup code
- remove useless comment that just says the obvious thing
- use same annotation as super class
- remove Scrubber class; that replaces some number in upstream,
  this is not needed for Delta Chat
2024-01-22 00:47:37 +01:00
B. Petersen cb181138c5 do not return null from grabLog(); instead show the error in the log 2024-01-22 00:47:37 +01:00