Commit Graph

2202 Commits

Author SHA1 Message Date
bjoern 387babe235 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]
```
2023-07-24 18:08:11 +02:00
B. Petersen fd212aed03 webxdc: allow media from blob: and data: 2023-07-21 22:46:32 +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
Hocuri 3becdf52ec Fix crash in the "Full Msg" view by downgrading Gson (#2610) 2023-06-30 16:29:08 +02:00
Hocuri 2084778be1 Fix NullPointerException (#2608) 2023-06-28 23:29:18 +02:00
Asiel Díaz Benítez ebaa5f69c4 Merge pull request #2588 from deltachat/adb/improve-crop
use image editor for avatar selection when possible
2023-06-27 18:31:00 +02:00
B. Petersen 0891dcb186 fix '>' in xml 2023-06-20 11:44:26 +02:00
bjoern b8a38ff5cf prepare 1.38.0 (#2590)
* update changelog for 1.38.0

* update device message for 1.38.0

* bump bersion to 1.38.0

* make device message translatable
2023-06-20 11:38:45 +02:00
adbenitez 9e4d0971b8 remove unused code 2023-06-12 16:17:41 +02:00
adbenitez 592607dd0e use image editor for avatar selection when possible
also update old android-crop dependency
2023-06-11 20:22:43 +02:00
Asiel Díaz Benítez bd81d0171d Merge pull request #2586 from deltachat/adb/issue-2585
move the file chooser implementation to WebxdcActivity class
2023-06-09 12:53:36 +02:00
adbenitez b6638cbefe add back check to onShowFileChooser() 2023-06-08 15:26:37 +02:00
adbenitez 3597042656 remove unused onActivityResult() override in WebViewActivity 2023-06-08 14:26:06 +02:00
adbenitez da7346b07d move the file chooser implementation to WebxdcActivity class 2023-06-08 13:33:55 +02:00
bjoern 167920b90f prepare 1.37.0 (#2584)
* update CHANGELOG for 1.37.0, core part

* update CHANGELOG for 1.37.0, android part

* bump version to 1.37.0

* update device message
2023-06-07 19:46:40 +02:00
Asiel Díaz Benítez 634cec2f82 Merge pull request #2571 from deltachat/adb/webxdc-export
add webxdc.sendToChat() API
2023-06-01 11:15:48 +02:00
bjoern c0955e2ec0 implement onShowFileChooser based on AdvancedWebView (#2575)
* implement onShowFileChooser based on AdvancedWebView

* simplify else condition

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

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

* rename mFileUploadCallbackSecond to filePathCallback

---------

Co-authored-by: Asiel Díaz Benítez <asieldbenitez@gmail.com>
2023-05-31 22:25:57 +02:00
adbenitez d51fef5318 add extra checks on the Java side and improve check in the JavaScript side 2023-05-30 23:43:54 +02:00
adbenitez d100397530 update to recent changes in sendToChat API specs 2023-05-30 21:22:32 +02:00
adbenitez 3588c074f1 add webxdc.sendToChat() API 2023-05-29 17:03:44 +02:00
imgbot[bot] 40e60f54bc [ImgBot] Optimize images (#2568)
*Total -- 144.77kb -> 116.33kb (19.64%)

/res/mipmap-xxhdpi/ic_launcher_foreground.png -- 16.06kb -> 11.63kb (27.61%)
/res/mipmap-xhdpi/ic_launcher_foreground.png -- 10.91kb -> 7.91kb (27.46%)
/res/mipmap-xxxhdpi/ic_launcher_foreground.png -- 21.07kb -> 15.37kb (27.04%)
/res/mipmap-hdpi/ic_launcher_foreground.png -- 9.00kb -> 6.63kb (26.37%)
/res/mipmap-mdpi/ic_launcher_foreground.png -- 7.12kb -> 5.47kb (23.2%)
/src/debug/res/mipmap-mdpi/ic_launcher_foreground.png -- 7.56kb -> 6.04kb (20.15%)
/src/debug/res/mipmap-hdpi/ic_launcher_foreground.png -- 10.14kb -> 8.13kb (19.87%)
/src/debug/res/mipmap-xhdpi/ic_launcher_foreground.png -- 12.99kb -> 10.64kb (18.05%)
/src/debug/res/mipmap-xxhdpi/ic_launcher_foreground.png -- 20.66kb -> 17.74kb (14.12%)
/src/debug/res/mipmap-xxxhdpi/ic_launcher_foreground.png -- 27.83kb -> 25.37kb (8.84%)
/res/drawable-xxxhdpi/ic_swap_vert_white_24dp.png -- 0.73kb -> 0.72kb (1.99%)
/res/drawable-xxhdpi/ic_swap_vert_white_24dp.png -- 0.69kb -> 0.68kb (1.27%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2023-05-23 13:08:37 +02:00
Hocuri 3d9132301e Remove white icon around foreground image (#2565)
Fix #2557.

I just used gimp to remove the white background; at some point, regenerating them from the svg would be nicer.
2023-05-23 00:04:28 +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
Hocuri 6914b1815a fix: Make replying privately work again (#2551) 2023-05-04 13:05:52 +02:00
Hocuri 0e27d445ee Rework how activities interact when forwarding/sharing (#2549) 2023-05-02 10:34:31 +02:00
adbenitez 0b85cd2b9e add getHttpResponse to Rpc 2023-05-01 14:22:39 -04:00
adbenitez cbec549918 rename RpcError to RpcException 2023-04-27 14:41:50 -04:00
adbenitez a5b1528b31 tweak comment 2023-04-27 14:33:36 -04:00
adbenitez 7935513825 move SettableFuture to core package 2023-04-27 14:25:24 -04:00
adbenitez e4beb06191 check if future is null 2023-04-27 13:23:03 -04:00
Asiel Díaz Benítez e1d071248b Apply suggestions from code review
Co-authored-by: Hocuri <hocuri@gmx.de>
2023-04-27 13:19:51 -04:00
adbenitez b5fc9ab945 remove field added while testing 2023-04-27 07:10:08 -04:00
adbenitez 941627db6e move Rpc class to com.b44t.messenger.rpc package 2023-04-25 20:09:59 -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 aa1a602d36 add DcHelp.getRpc() 2023-04-23 15:59:04 -04:00
adbenitez d977d1f3a5 use get() 2023-04-23 15:27:39 -04:00
adbenitez 1d6d148c7e fix bug 2023-04-23 15:00:08 -04:00
adbenitez 5a5d27a3e7 add DcRpc class 2023-04-23 14:46:37 -04:00
link2xt 7d6ff619cf Start JSON-RPC parsing 2023-04-23 13:14:27 +00:00
link2xt 53dc77ec2d Disable requests for now 2023-04-22 23:06:40 +00:00
link2xt df1acac1a6 Trying to use StringWriter 2023-04-22 22:14:21 +00:00
link2xt e27a901f42 Generate request IDs 2023-04-22 21:29:16 +00:00
link2xt a7e6f4865f Try to send JSON-RPC requests 2023-04-22 20:59:31 +00:00
link2xt 39e9ab817e Add JSON-RPC thread
Printing JSON-RPC responses for now.
2023-04-22 20:09:11 +00:00
link2xt 5246ee77ad Remove getNextEventCPtr 2023-04-22 18:31:57 +00:00
link2xt 00fd1a95bb Add dcJsonrpcInstance to ApplicationContext 2023-04-22 17:58:03 +00:00
link2xt 39800733c6 Revert "Start using DcJsonrpcInstance"
This reverts commit 91ba9ae50c2db5279fddec76df9f6d3870ab737e.
2023-04-22 17:58:03 +00:00
link2xt 1405ae0b65 Start using DcJsonrpcInstance 2023-04-22 17:58:03 +00:00
link2xt 4f468a4b8f Add DcJsonrpcInstance class 2023-04-22 17:58:03 +00:00
bjoern 8d5372962f do not intercept requests when loading remote content is disabled (#2547)
even with setBlockNetworkLoads(true),
shouldInterceptRequest() is called,
not sure if this is a bug or expected behavior,
i did not find documentation for that;
intuitively, i dit not expect sort of a proxy to bypass
and explicit block_networks = true,
however, one can probably also argue in the other direction.

leaving setBlockNetworkLoads(true),
in case default behavior changes (or older webviews have different ones),
we have a second layer.
2023-04-20 22:09:15 +02:00