Commit Graph

15 Commits

Author SHA1 Message Date
Max Radermacher
5f1e06b6d7
Use LinkPreviewCallLink for previews 2026-03-02 12:50:20 -06:00
Igor Solomennikov
37e1a99209
Big update of link preview views.
LinkPreviewView was previously used to show link previews in chat and in Share Extension when text being shared contained an url. This commit renames LinkPreviewView to CVLinkPreviewView and simplifies the component to only handle sent links - support for showing intermediate "loading" state as well as having a cancel button to remove link preview - has been removed from this class.

OutgoingLinkPreviewView is used to show "link preview draft" in the chat input toolbar. This commit renames the class to LinkPreviewView and adopts this component to be used in Share Extension in place of the component mentioned above.

All those changes result in update link preview UI in Share Extension - visible when sharing a website from Safari or other mobile browser.
2026-02-26 21:12:36 -08:00
Igor Solomennikov
b0d5885d65
Update appearance of link preview messages.
• now inset from bubble's edges
• updated background color
• updated description text color and size

Also includes quite a bunch of cleanup in LinkPreviewView.
2026-02-25 13:48:40 -08:00
Sasha Weiss
d267ec8305
Run swiftformat . 2025-12-30 11:34:05 -08:00
Pete Walters
1761235f88
Migrate from YYImage to SDWebImage 2025-09-10 21:39:41 -05:00
Harry
e80785c72a
Fix link preview showing failed icon when downloading image 2025-04-14 14:32:38 -07:00
Harry
8df602b184
Render most undownloadable attachments 2025-01-31 14:43:48 -08:00
Marissa Le Coz
a84400a4fe
Make call links icon into UIImage using UIGraphics 2024-09-26 16:57:38 -04:00
Marissa Le Coz
752dffb2c1
Add image to call link previews for sent messages 2024-09-24 17:40:34 -04:00
Max Radermacher
4d9d555941
Clean up link preview rendering code 2024-08-01 12:21:48 -05:00
Ehren Kret
039d2625b9 convert OWSMath.h to swift
OWSMath.swift overlaps somewhat with Math+OWS.swift but no worse than
OWSMath.h did previously. There are future refactoring efforts that
should occur there to use more of the extensions of Math+OWS.swift and
less of the extensions from OWSMath.swift
2024-04-21 23:26:16 -05:00
Harry
ec181d09b8
TSAttachment->TSResource cleanups 2024-04-15 09:44:21 -07:00
Jordan Rose
b0de59f2e2 Remove required from every init that is not dynamically dispatched
This included:
- Removing unavailable inits wholesale if no longer `required`
- Marking a few classes `final` so they could continue using
  `Self(...)` rather than `OWSWhatever(...)`
2024-04-01 15:27:20 -07:00
Jordan Rose
2727a70b90 Make AtomicValue's lock-sharing explicit
Also:
- Remove AtomicUInt's @objc, it's no longer used from ObjC
- Remove Codable conformances, they would implicitly use shared locks
  and weren't used in practice
2024-03-27 10:57:32 -07:00
Max Radermacher
8910fc4d5b
Move around files in SignalUI/ and the share ext 2024-03-25 14:22:28 -05:00