Commit Graph

320 Commits

Author SHA1 Message Date
adbenitez 9fa07fe8f3 improve coversation title's subtitle 2024-01-20 02:46:34 -05:00
adbenitez 97ec5b835a Merge remote-tracking branch 'upstream/main' 2023-11-11 12:03:03 +01:00
adbenitez 3d5abb0aad apply workaround only on SDK >= 34, use PowerManager.isInteractive() 2023-11-10 15:58:09 +01:00
adbenitez 8e912a73ea add comment 2023-11-10 12:09:38 +01:00
adbenitez cffb46c01a only hide toolbar if screen goes off 2023-11-10 12:00:33 +01:00
adbenitez b4bd0b0ad7 hide toolbar onPause and show it again onResume 2023-11-09 19:08:00 +01:00
adbenitez e500738954 remove built-in camera 2023-11-08 12:24:11 +01:00
adbenitez 56dd7dbd0b improve emoji detection when deciding to send as reaction 2023-11-04 05:08:35 +01:00
adbenitez 2e4046253d fix bug in handleSharing() 2023-10-29 17:23:51 +01:00
adbenitez 68ee076a6c allow to set subject and HTML part in sendToChat() 2023-10-28 06:28:46 +02: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
adbenitez 80ed95077d allow to react with single-emoji reply and to remove reaction 2023-10-12 22:42:49 +02:00
adbenitez e81b4ef630 disable sending reactions for now 2023-10-05 23:18:00 +02:00
adbenitez efc0d8d657 Merge remote-tracking branch 'upstream/main' 2023-10-05 01:06:40 +02:00
B. Petersen 134d7ad4c2 remove unneeded FROM_SHARE_ACTIVITY_EXTRA 2023-10-05 00:23:17 +02:00
B. Petersen ff1ca22b5f do not allow new contact creation on attaching contact 2023-10-05 00:23:17 +02:00
B. Petersen ca55d72394 hide 'new group' etc. in attach contact 2023-10-05 00:23:17 +02:00
B. Petersen a66562ac5d on-point names 2023-10-05 00:23:17 +02:00
B. Petersen 7a44e16a5d remove share stuff from BlockedAndShareContactsActivity 2023-10-05 00:23:17 +02:00
adbenitez d65c45f96a allow to set chat background per-account 2023-10-04 16:33:23 +02:00
adbenitez 2e46725e07 Merge remote-tracking branch 'upstream/main' 2023-10-03 15:10:01 +02:00
B. Petersen 15b7919787 add DcChat.getAccountId() 2023-10-01 21:48:55 +02:00
adbenitez ad9f0db9ad Merge remote-tracking branch 'upstream/stable' 2023-10-01 13:53:20 +02:00
adbenitez 5bc3157d2e remove unnecessary overrides 2023-09-30 22:50:21 +02:00
adbenitez 1d5eb959d1 fix bug: don't react if it is draft saving 2023-09-28 16:20:54 +02:00
adbenitez 102f758528 send reaction if reply to message is a single emoji 2023-09-28 15:34:35 +02:00
adbenitez c952fb33e2 Merge remote-tracking branch 'upstream/stable' 2023-09-28 01:05:16 +02:00
adbenitez 74bae4e371 properly set language for all activities, also on screeen rotation 2023-09-27 20:58:51 +02:00
B. Petersen 30d4febee7 use system camera as default
the system camera has usually more features (flash, physical zoom, filter)
and is less buggy than the mostly unmaintained built-in one.
also, the system camera seems to be more supported
(isDeviceSupported() is not needed) and does not require to ask for permission.

there is still a switch in "advanced settings" to use the old built-in camera,
however, at some point we may remove the old code completely.
2023-09-27 18:22:55 +02:00
adbenitez 224eb1a89c Merge remote-tracking branch 'upstream/master' 2023-08-08 20:28:06 +02:00
adbenitez cf23f62887 fix: load updated display name when chat protection breaks 2023-07-26 00:22:28 +02:00
adbenitez 558a233558 Merge remote-tracking branch 'upstream/master' 2023-07-20 01:51:08 +02:00
Hocuri 11a2cfbff7 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.
2023-07-14 12:05:05 +02:00
adbenitez 3e833d4f08 Merge remote-tracking branch 'upstream/master' 2023-06-30 16:29:49 +02:00
Hocuri 2084778be1 Fix NullPointerException (#2608) 2023-06-28 23:29:18 +02:00
adbenitez d5441bd6ad add support for message type in webxdc.sendToChat() 2023-06-25 23:35:07 +02:00
adbenitez 39b361c913 Merge remote-tracking branch 'upstream/master' 2023-06-04 17:01:01 +02:00
Asiel Díaz Benítez 4461358a3d Merge pull request #2479 from deltachat/link2xt/jsonrpc
Add DcJsonrpcInstance class
2023-05-05 17:57:52 +02:00
adbenitez 6085b7d550 Merge remote-tracking branch 'upstream/master' 2023-05-02 04:57:36 -04:00
Hocuri 0e27d445ee Rework how activities interact when forwarding/sharing (#2549) 2023-05-02 10:34:31 +02:00
adbenitez 95683fa1fd Merge remote-tracking branch 'upstream/master' 2023-05-01 15:11:43 -04:00
adbenitez 7935513825 move SettableFuture to core package 2023-04-27 14:25:24 -04:00
Asiel Díaz Benítez aa3e7195b2 set draft from mailto data in QR (#2337) 2023-04-24 15:17:40 +02:00
adbenitez bd16fdf703 Merge remote-tracking branch 'upstream/master' 2023-03-26 23:18:02 -04:00
Hocuri 3ff42b7c9e Fix sharing, again (#2506)
* Revert "use different values for  "ACCOUNT_ID_EXTRA and CHAT_ID_EXTRA""

This reverts commit 8962476a21.

* Use correct "chat_id" constant
2023-03-26 12:46:29 +02:00
Asiel Díaz Benítez 920889c119 Merge pull request #2175 from deltachat/adb-clear-chat
allow to remove all messages from current chat
2023-03-13 20:18:44 -04:00
adbenitez ffb788e4b6 add "clear chat" 2023-03-13 19:08:06 -04:00
adbenitez 855f3c3687 Merge remote-tracking branch 'upstream/master' 2023-03-13 15:50:35 -04:00
Asiel Díaz Benítez 25c192573e Merge pull request #2464 from deltachat/adb/multi-account-notifications
allow notifications for all accounts
2023-03-13 15:00:24 -04:00
bjoern 08bb30eb3a add codespell, fix typos (#2490)
* add script to call codespell utility

* fix typos found by scripts/codespell.sh
2023-03-06 13:44:46 +01:00