Commit Graph

2534 Commits

Author SHA1 Message Date
Asiel Díaz Benítez c705790d26 display vcard view type and allow to import/export contacts as vcard (#3043)
* implement Rpc API for parse_vcard

* allow to create Recipient from VcardContact

* display vcard view-type in incoming/outgoing messages

* fix linter warnings in Recipient class

* properly show vcard view-type in quoted messages

* display fallback avatar in quotes

* allow to attach vcard

* implement basic click listener

* timestamp type got changed from float to int

* set stick translation for "contact"

* share contact as vcard using the new Rpc.makeVcard API

* allow to import contact when clicking vcard
2024-05-19 16:22:39 -04:00
bjoern 1884f9bc4f show the device-update-message only once, not on every account switch (#3069)
* show the device-update-message only once, not on every account switch

* instead of not adding device messages twice, always add and mark the chat as being noticed

* remove unused variable
2024-05-19 20:55:43 +02:00
Asiel Díaz Benítez c99e6fc27f save avatar and name onPause() in InstantOnboardingActivity (#3067) 2024-05-19 10:19:27 -04:00
bjoern a8acfcfeb7 tune down entering email addresses manually (#3064)
* reword 'QR code' to 'Invite Code'

* reword adding classic email

* remove the 'new contact' things together

* add 'new classic contact' shortcut only for non-chatmail; it is still always available in the three-dot menu of 'new contact'

* use same menu for qr show/scan

* add 'new classic contact'

* remove 'scan' button from 'new classic contact' (ppl usually came from 'scan')

* rename to 'add contact manually'

* stay with 'qr code' for now
2024-05-19 07:45:23 -04:00
bjoern afd1a26e4a move 'manual log in' to 'create profile' (#3060)
* add submenu to 'Explore Other Options'

* move 'Manual Login' to 'Explore Other Options'

* clearer titles, even if they are repetive

* move 'Scan QR' to 'Other'; this allows us to make 'Other' more outstanding

* cleanup layout

* tweak wording to 'Use Other Server' pointing to 'List in Browser', 'Classic Login', 'Scan Invite Code'

* use a standard secondary button for 'Use Other Server'

* show default onboarding server name

* reword to 'List Chatmail Servers'

* always close other-sign-up-options on tapping an option

* clarify that 'classic login' is about e-mail
2024-05-19 13:02:05 +02:00
Asiel Díaz Benítez 02ec78f8b4 show overriden sender name also for self messages if present (#3056) 2024-05-17 15:04:31 -04:00
Asiel Díaz Benítez b7153c2557 change "three dots" option in "add reaction" view to ellipsis (#3059) 2024-05-17 15:00:18 -04:00
Asiel Díaz Benítez 6b86ebdd54 allow to share log instead of copying to clipboard (#3052)
* allow to share log instead of copying to clipboard

* fix log sharing, improve shareLog() code
2024-05-17 09:53:26 -04:00
Asiel Díaz Benítez 646817e19b allow to show password in registration activity (#3051) 2024-05-17 06:34:21 -04:00
bjoern cbb934e9ef hide IMAP folder options on chatmail (#3050)
* remove unused getConfig() variants

* hide IMAP folder options if is_chatmail == 1

* hide e2ee, show-system-contacts as well

* ignore system-contacts settings on chatmail (in case it was enabled before)
2024-05-15 15:10:19 +02:00
B. Petersen 7cf7258222 add beta device messages 2024-05-13 18:45:25 +02:00
bjoern b3a4084026 add strings for new 'please wait' securejoin flow (#3044)
* add strings for new 'please wait' securejoin flow that disallows sending a message in the first seconds

* Update res/values/strings.xml

Co-authored-by: iequidoo <117991069+iequidoo@users.noreply.github.com>

---------

Co-authored-by: iequidoo <117991069+iequidoo@users.noreply.github.com>
2024-05-12 11:43:17 +02:00
Asiel Díaz Benítez 006f2b091b use last known location if it is recent enough (#3039) 2024-05-10 09:59:41 -04:00
bjoern 51415e8a90 received token is info level, not warning level (#3041) 2024-05-10 15:36:43 +02:00
Asiel Díaz Benítez 94b83b4713 remove unused imports (#3038) 2024-05-09 08:26:32 -04:00
Asiel Díaz Benítez afa1f92a6e disable APNG decoder (#3035) 2024-05-08 15:34:17 -04:00
Asiel Díaz Benítez 026d9da70a clear quote if current draft has no quote (#3036) 2024-05-08 15:33:29 -04:00
bjoern 5dd1bb17ca log if we receive onDeletedMessages() (#3034)
* log if we receive onDeletedMessages()

* Update src/org/thoughtcrime/securesms/notifications/FcmReceiveService.java

Co-authored-by: Asiel Díaz Benítez <asieldbenitez@gmail.com>

---------

Co-authored-by: Asiel Díaz Benítez <asieldbenitez@gmail.com>
2024-05-08 17:40:25 +02:00
bjoern 729db80d1c add 'cancel' button to 'manage keys'; that was somehow missing (#3033) 2024-05-08 09:08:41 -04:00
Asiel Díaz Benítez 8df2749d74 fix bugs and some code cleanup (#3023)
* fix bug: open WelcomeActivity when scanning backup from chatlist

* remove unused field manualConfigure

* remove unused code in startQrAccountCreation() and rename to startBackupTransfer()

* InstantOnboardingActivity: return to chatlist if not started from WelcomeActivity

* use OnBackPressedCallback
2024-05-07 12:53:50 -04:00
B. Petersen a427b1c280 init and getToken only once 2024-05-07 15:34:50 +02:00
B. Petersen 9114304d28 clarify the onMessageRecevied() strategy 2024-05-07 15:34:50 +02:00
B. Petersen e2d51ca1a3 support android 4.1-4.3 again 2024-05-07 15:34:50 +02:00
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