* 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
* 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
* 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
* 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>
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)
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'
* 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>
* 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
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.