Commit Graph

466 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
B. Petersen a28f404ef0 add hint to 'add manual contact' 2024-05-19 17:32:54 +02: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 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 72956d0ba1 use app:drawableStartCompat instead of android:drawableStart (#3028) 2024-05-07 07:55:29 -04:00
B. Petersen c93cdc5898 move 'password and account' to advanced, together with folder settings 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
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 c7ad087b51 remove now unused map resources 2024-04-26 21:42:07 +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
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
B. Petersen c08717fb63 do not point ppl towards entering email addresses 2024-01-20 12:00:41 +01:00
adbenitez e3867311f0 remove unused view 2023-11-14 21:58:19 +01:00
B. Petersen b08bf8ba7d add contact: more room for name+email address
on smaller screens, email address easily is covered by the keyboard;
which will result in lots of confusion

this pr tweaks the or-ornament a little,
without looking much different afterwards
(less padding below, adapted colors)
2023-11-13 22:20:56 +01:00
adbenitez c3ffe9a92e reduce divider padding 2023-11-12 16:38:50 +01:00
Asiel Díaz Benítez 84d81c80d9 Update res/layout/new_contact_activity.xml
Co-authored-by: bjoern <r10s@b44t.com>
2023-11-12 10:36:51 -05:00
adbenitez 0f4c0dbdd8 move qr button to the top 2023-11-11 23:34:20 +01:00
adbenitez 9a46b19d24 use secondary button 2023-11-11 20:36:17 +01:00
adbenitez c546b0de30 add more padding to divider 2023-11-11 20:16:14 +01:00
adbenitez 30ab45a4a7 improve NewContactActivity, add "scan QR button" 2023-11-11 19:58:33 +01:00
adbenitez be0fdb7589 add new contact activity 2023-11-03 06:00:40 +01:00
B. Petersen ecaf2926e3 remove dead code 2023-11-03 00:20:16 +01:00
adbenitez 770972be53 remove item divider in group creation's member list 2023-11-02 01:36:29 +01:00
adbenitez 8137003aea add padding to X button in group creation screen 2023-11-02 01:36:13 +01:00
adbenitez e57ae0b600 improve group creation screen 2023-11-01 19:16:03 +01:00
B. Petersen d3f2a268b1 use 'Group Name' as placeholder for group name
before if was just 'Name',
which can lead to confusion
when heading instructions as "create a group with that person":
one may create a group and enter the email address to "Name" ...

same with 'Broadcast List Name'
2023-11-01 18:54:43 +01:00
adbenitez 615bef2704 add more padding to the "add member" button 2023-10-30 23:16:18 +01:00
adbenitez 30bca270e1 remove QR button in group creation screen 2023-10-30 19:11:31 +01:00
Hocuri ee966f9006 Merge the verified-1:1 commits into main (#2752)
* Verified 1:1 chats, Android UI (#2560)

Depends on https://github.com/deltachat/deltachat-core-rust/pull/4315/.

Follow-up for https://github.com/deltachat/deltachat-android/pull/2541.

- Show a "verified" icon on protection changed update messages
- Add C API
- Show a dialog over the input bar not only for contact requests, but also when the protection is broken (using the new method `isHalfBlocked()`)
  - The positive button reads "OK" (as opposed to contact requests where it reads "Accept")
- Add SVG icons, remove PNG one
- Translations
- When tapping on the `DC_INFO_PROTECTION_{EN|DIS}ABLED` message, show more information (for now, it leads to the online preview of my FAQ PR)
- Block loading remote images in the "Full Msg View" not only for contact requests, also when the protection is broken (using the new method `isHalfBlocked()`)
- Show a big verified/crossed-out-verified symbol over the `DC_INFO_PROTECTION_{EN|DIS}ABLED` messages
- Fix a bug that was kind of present before (for contact requests) but only became really visible now:
  - Set a draft with an image (or other attachment)
  - Your chat partner breaks verification
  - Expected: Both the input bar and the draft image are hidden by the input-bar-dialog.
  - Bug behavior (before c31de5bcf): The input bar is hidden, but the draft image stays visible.

* change button order of verification-broken alert (#2621)

Having "OK" in the middle of the buttons is weird. The old order was:

```
End-to-end encryption cannot...
[More Info]  [OK] [Scan QR code]
```

1. _If_ the main purpose of the dialog would be to "Scan QR code",
   the text should point that out more, also the opening button.
   Then, the button position would be correct, however,
   it has to read "Cancel" then.

2. _However_, the main purpose of the dialog is to "Show Info",
   "Scan QR code" is only an optional offering and the button a shortcut only.
   And finishing "Show Info" is better done by a simple "OK".
   Then, the "OK" should be rightmost.

This PR implements the second option, the buttons read as follows afterwards:

```
End-to-end encryption cannot...
[More Info]  [Scan QR code] [OK]
```

* fix: load updated display name when chat protection breaks

* Implement feature flag for verified 1:1 chats

* Update res/values/strings.xml

Co-authored-by: Hocuri <hocuri@gmx.de>

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

* Make another AlertDialog

* Revert "Implement feature flag for verified 1:1 chats"

This reverts commit 2efd17edfcf14e3cf89a6671df38647b552e5661.

* Fix typo

* email server->email provider

---------

Co-authored-by: bjoern <r10s@b44t.com>
Co-authored-by: adbenitez <asieldbenitez@gmail.com>
2023-10-27 17:02:29 +02:00
bjoern 2d01fd9b6f sending reactions (#2680)
* add basic reaction view

* reuse pill background

* make pill border a little more visible; this affects sended reactions as well as received ones

* use 🤣 instead of 😂 to differ more from 😢

also, 😂 is a bit outdated for younger generations
(so is probably 🤣 but not that much)
(alternative would be 💀 for laughing,
but that is probably not compatible between generations)

* use 🙁 instead of 😢 for 'sad' to distict from lol

lol gets revered to 😂 as
🤣 seems to be even a more non-go (thanks for expertise, young folks!)

* wording: we add one reaction, not many

* show/hide add-reaction-view together with action mode

* pass message&view to showAddReactionView()

* add sendReactions() api

* create AddReactionView class

* send reactions on click

* hide AddReactiobView on sending emoji

* detect self-reaction

* feat: remove selections

* position AddReactionView atop of parent view

* move AddReactionView up a bit

* padding top/bottom

* center for now, this also postpones rtl/ltr

* force initial layout

* move slightly more off the bubble, keep away a bit from screen margin

* move AddReactionsView left/right depending on incoming/outgoing mails

* do not allow reactions in read-only chats

* do not allow to react to videochat-invitations and info; the latter may makes sense at some point, however, to lower burder on other implementations, we do not send them for now

* hide reaction-picker when leaving action mode with 'back'

* hide reaction-picker when leaving action mode with 'back'

* scroll reaction-panel together with recyclerview; this does not happen if new messages come in, however, this is a minor (and a stable panel position can be regarded even as a feature)

* add sending reactions as an experimental feature as long not at least all system display reactions

* clarify that reactions are currently not seen by all members

* prefer View.INVISIBLE over offscreen hack
2023-10-20 15:17:24 +02:00
adbenitez 31f96e1f9d registration screen: make checkbox use acent color 2023-10-08 00:07:00 +02:00
adbenitez 4dc1abf135 add comment 2023-10-06 23:26:21 +02:00
adbenitez b24ab37931 allow to properly click in audio messages in multi-select mode
also allow to long-press in play button to select message
2023-10-06 21:21:15 +02:00
adbenitez ce1733f3ea fix displaying of sticker's footer 2023-10-04 03:28:21 +02:00
adbenitez 8300242d0f set some descriptions 2023-10-03 22:11:25 +02:00
adbenitez 27466decf5 remove unnecessary description 2023-10-03 22:07:55 +02:00
adbenitez 1e149eef83 improve screen reader support in conversations 2023-10-03 21:46:36 +02:00
B. Petersen 05850a0d00 move part of left padding from emoji-button to parent; this looks better the emoji button is not needed as using system-emoji are used 2023-09-30 18:12:51 +02:00
adbenitez 9ad19a3c41 display text in reaction pill 2023-09-30 17:32:08 +02:00
adbenitez 79fb395613 set same padding right 2023-09-29 14:37:55 +02:00
adbenitez e6107c4dcf add reactions details dialog 2023-09-29 03:45:35 +02:00
adbenitez a38ad255da basic display of reactions 2023-09-27 20:41:49 +02:00
B. Petersen 3194e94f28 set icon beside 'verified by' 2023-09-26 10:46:37 +02:00
adbenitez 32a70bd8da apply suggestions 2023-09-25 14:39:44 +02:00
adbenitez 9ff3693746 set rounded corner for webxdc icons 2023-09-25 13:08:13 +02:00
Hocuri 0612090397 Adapt Padlock and Location indicator to screen size (#2567)
Fix #2566 - well, mostly: This enlarges the padlock (and the location
indicator if it's present), but not the checkmark(s).

When using the app like this, this feels good as-is.
2023-05-23 10:17:15 +02:00
Hocuri 58aeb0acc9 Bigger scroll-to-bottom button (#2561) 2023-05-10 11:03:22 +02:00
B. Petersen d29f7ad5c9 center footers 2023-03-27 10:29:26 +02:00
B. Petersen b3d21f0be9 move "experimental" hint below qr-code/scanner
the hint in the title was regarded as "not so nice" on first tests
and was even overseen.
2023-03-27 10:29:26 +02:00