Alex Hart
e3044b8b85
Add preview treatment for call links.
2023-06-26 15:09:36 -04:00
Alex Hart
2fbcc23451
Add LinkPreview support to CFV2.
2023-06-26 15:09:36 -04:00
Greyson Parrelli
92b9fda6c7
Convert GroupTable to kotlin.
...
Also required converting some tests to mockk.
2023-01-01 23:05:02 -05:00
Greyson Parrelli
7949996c5c
Renamed database classes to table classes.
...
Because they're not databases. They're tables.
2022-11-30 17:10:36 -05:00
Cody Henthorne
7fafa4d5e6
Ensure network call resources are closed.
2022-10-24 21:00:17 -03:00
Greyson Parrelli
8ca94eb3d5
Fix issue where link previews wouldn't finish if we couldn't fetch the thumbnail.
2022-09-28 11:33:35 -04:00
Alex Hart
9a21f5abca
Add stories link treatment for devices with link previews disabled.
2022-09-23 14:30:58 -04:00
Justin Tracey
8a2f89b4f6
Fix .onion link linkification.
...
Fixes #11458 .
2022-05-02 15:25:55 -04:00
Alex Hart
c4817ac017
Allow generic links to be sent as stories.
2022-04-08 12:19:27 -04:00
Alex Hart
4c462bd75a
Enforce L1 media restrictions on link preview thumbnails.
...
Co-Authored-By: Alexandre Erwin Ittner <110642+ittner@users.noreply.github.com>
2022-04-06 12:37:43 -04:00
Greyson Parrelli
77ea2deada
Move more util classes to core-util.
2022-04-06 12:36:32 -04:00
Greyson Parrelli
72777bc6cd
Disallow some unicode sequences in link previews.
2022-03-28 19:07:21 -04:00
Greyson Parrelli
8d4419705b
Update to libsignal-client 0.15.0
2022-03-28 19:07:20 -04:00
Greyson Parrelli
2b5d65ae04
Revert "Update to libsignal-client 0.15.0"
...
This reverts commit 3d5f04eba757563dd92366d994a96cf323b8d540.
2022-03-28 19:07:20 -04:00
Jordan Rose
1e316ea19f
Update to libsignal-client 0.15.0
2022-03-28 19:07:20 -04:00
Greyson Parrelli
135fde68c1
Migrate some cursor utils to core-util.
2022-03-28 19:07:20 -04:00
Greyson Parrelli
057231b9c3
Update libsignal-client to 0.14.0
2022-03-17 12:12:56 -04:00
Cody Henthorne
bf28dfee66
Add test for double encoded html in link preview tags.
2022-02-02 16:50:58 -05:00
Anurag Pathak
9b0dec7ece
Fix HTML unescaped encoded entities in link preview issue.
2022-02-02 16:50:58 -05:00
Alex Hart
89271ecce2
Remove context leak in LinkPreviewViewModel.
2022-02-01 13:41:31 -05:00
Greyson Parrelli
62f5088553
Delete old megaphones.
2022-01-07 14:41:42 -04:00
Greyson Parrelli
843ed24bbb
Introduce SignalDatabase as the main database entrypoint.
2021-11-18 12:36:52 -05:00
Greyson Parrelli
2bac1a7707
Fix race condition that could show an empty link preview after send.
2021-08-05 17:45:14 -04:00
Alex Hart
6cc0eed5fe
Fail linked preview thumbnail request instead of crashing app.
2021-07-21 16:57:04 -04:00
Greyson Parrelli
fce362960f
Switch to LinkifyCompat.
...
We've seen some inconsistencies across OEMs with Linkify. Hopefully
LinkifyCompat will resolve them.
2021-06-30 16:13:42 -04:00
Alex Hart
c31146e902
Render gifs in gif search as MP4s.
2021-04-19 18:11:56 -04:00
Greyson Parrelli
b053fbc4a7
Use Log.tag where appropriate.
2021-03-31 16:02:32 -03:00
Cody Henthorne
dc9b8169c0
Make thread related utility methods available for use in all modules.
2021-03-02 11:07:04 -05:00
Greyson Parrelli
8f4d64d37a
Update link preview user agent.
2021-01-11 13:46:35 -04:00
Alan Evans
64312f9c7f
Fix non-rendered previews when differ by trailing slash.
2021-01-06 17:03:20 -04:00
Greyson Parrelli
8e93bf9075
Create a core-util module with some common utilities.
2020-12-05 13:44:13 -05:00
Alex Hart
75062ada8a
Upgrade SDK to 30.
2020-11-18 13:38:27 -04:00
Alan Evans
adf1674877
Support sgnl://signal.group links.
2020-10-07 17:22:05 -04:00
Greyson Parrelli
0c73ddc08b
Ensure we HTML-decode the <title> tag.
...
Fixes #10020
2020-09-23 16:54:38 -04:00
Greyson Parrelli
9dc33eff3a
Remove thumbnails from the AttachmentDatabase.
...
Glide can do everything for us now, including video thumbnails.
2020-09-23 16:54:38 -04:00
Greyson Parrelli
2784285d47
Add support for fetching remote deprecation.
2020-09-08 18:03:56 -04:00
Alan Evans
bb708e0aa3
Ignore link preview descriptions that match the title.
2020-09-03 20:23:26 -04:00
Greyson Parrelli
0c332b6adb
Fix corner cases with LinkPreviewViewModel enabled state.
2020-08-28 09:30:03 -04:00
Greyson Parrelli
ba712ce357
Fix crash with link preview date formatting on Android < 7.
...
The 'X' wasn't supported until Android 7.
2020-08-28 09:30:03 -04:00
Greyson Parrelli
c09dbfa47c
Prevent corner-case where link previews were generated for SMS.
...
Also added some hardening to make sure that it's impossible for any link
previews to be fetched if the setting is disabled (this was already the
case in practice, we just have some assertions in there now).
Fixes #9956
2020-08-27 12:12:44 -03:00
Greyson Parrelli
b1befbeefc
Add additional LinkPreviewUtil unit tests.
...
Also updated the date format -- funnily enough Android will work with
either Z or X in the format, but the test JVM will fail if it doesn't
use X. X is definitely the correct thing to use based on the Javadoc, I
think Android's implementation is just a little more lenient.
2020-08-27 09:32:33 -04:00
Panagiotis Vasilopoulos
3a9a84a0b1
Do not attempt to create link previews for .i2p links
2020-08-27 10:01:50 -03:00
Greyson Parrelli
dd8b9ff8fb
Add support for article dates in link previews.
2020-08-26 17:25:54 -03:00
Alan Evans
4ace075ddf
Display membership count in link preview description field.
2020-08-26 09:26:25 -03:00
Greyson Parrelli
c78e098cb4
Add support for link preview descriptions.
2020-08-25 16:05:39 -04:00
Alan Evans
01375b321c
Don't release bitmaps managed by Glide, and don't cache group preview avatars.
2020-08-24 11:16:41 -03:00
Alan Evans
09d167c16d
Group link preview and info display bottom sheet.
2020-08-19 16:32:01 -04:00
Greyson Parrelli
16147e0c08
Ensure link preview fetches are canceled on message send.
2020-08-18 18:34:18 -04:00
Greyson Parrelli
3f7dd21186
Do not attempt to create link previews for .onion links.
2020-08-17 10:27:30 -04:00
Alan Evans
57e0e57f48
Fix NPE when link preview image cannot be decoded.
2020-08-15 10:10:15 -03:00