Commit Graph

10333 Commits

Author SHA1 Message Date
Max Radermacher
34eca8a139
Fix some dependency cycles with CallService 2024-05-14 11:46:52 -05:00
Harry
e472f501d8
Revert recent AudioPlayer TSResource changes 2024-05-13 16:15:11 -07:00
Marissa Le Coz
600cb005de
Remove call reaction feature flags 2024-05-13 19:10:47 -04:00
Max Radermacher
77aab0e37b
Update outdated staging environment constant 2024-05-13 18:10:29 -05:00
Marissa Le Coz
44ac1ba1bf
Productionize CallMemberView for individual remote members 2024-05-13 18:45:16 -04:00
Max Radermacher
f62b97581a
Acquire a background task during MSL cleanup 2024-05-13 16:10:18 -05:00
Harry
3f9c835a12
Increase max animated image frame size allowed 2024-05-13 13:29:15 -05:00
Jordan Rose
6363dc07d1 OWSChatConnectionUsingLibSignal: 7a396ba9f, again 2024-05-13 10:18:08 -07:00
Pete Walters
0c2ec56809
Add HMAC validation to backup import. 2024-05-08 12:22:45 -05:00
Ehren Kret
9551a72323 migrate PhoneNumberUtil to swift 2024-05-08 09:36:18 -05:00
Ehren Kret
84bc79a894 migrate PhoneNumberUtil getExampleNumberForType:type:nbPhoneNumberUtil: to swift 2024-05-08 08:15:30 -05:00
Ehren Kret
12e9d554a4 migrate PhoneNumberUtilTest remaining tests to swift 2024-05-08 08:05:22 -05:00
Ehren Kret
13a1637608 migrate AppContext protoocl to swift 2024-05-08 07:37:37 -05:00
Ehren Kret
4364907c3e move AppContext globals to swift 2024-05-08 07:37:37 -05:00
Harry
36784dcced
Add invalid v2 Attachment content type 2024-05-07 15:06:59 -07:00
Harry
82efa4eb7f
Audit usages of TSResource.mimeType to ensure we check contentType first 2024-05-07 15:06:11 -07:00
Harry
397cbf94e6
Compute and cache v2 attachment video still frames at download time 2024-05-07 15:05:28 -07:00
Max Radermacher
fa48dd4b5d
Fix LocalProfileChecker avatar mismatch handling 2024-05-07 17:04:54 -05:00
Harry
4ad9df5f1b
Eliminate the last instance of TSAttachment outside explicit bridging code 2024-05-07 15:04:44 -07:00
Harry
427ee2b087
Use TSResource in ViewOnceMessageViewController 2024-05-07 15:04:01 -07:00
Max Radermacher
ae04b37ad6
Avoid addresses in OWSGroupCallMessage 2024-05-07 12:31:52 -05:00
Jordan Rose
58720baa80 Turn on "high" shadowing for unauth requests for beta users
This can still be overridden with the
ios.experimentalTransportEnabled.shadowingHigh remote config flag if
necessary.
2024-05-06 11:57:33 -07:00
Sasha Weiss
05960887cd
Support for Calls in Backups 2024-05-06 11:43:13 -07:00
Sasha Weiss
6ff76dd7e6
Do away with some ObjC test infra 2024-05-06 09:57:21 -07:00
Alex Konradi
f05c7fd129
Turn on libsignal CDSI lookup for all builds 2024-05-06 09:53:45 -04:00
Jordan Rose
401d55d751 OWSChatConnection: Handle TLS proxies for libsignal shadowing 2024-05-03 17:36:29 -07:00
Harry
768040273e
Create StickerMetadata from TSResourceStream 2024-05-03 16:26:01 -07:00
Harry
0e228ab878
Feature parity with desktop on lottie sticker support (aka drop support) 2024-05-03 14:59:07 -07:00
Harry
67ad7494f4
Use TSResourceStream.avAsset directly in AudioPlayer 2024-05-03 14:44:06 -07:00
Harry
aa38eefe9c
Use AVPlayer instead of AVAudioPlayer in AudioPlayer class 2024-05-03 14:42:39 -07:00
Harry
633014ae72
Remove a few easy TSAttachmentStream bridges 2024-05-03 14:33:53 -07:00
Harry
fb4410c4c3
Get YYImages off AttachmentStream/TSResourceStream 2024-05-03 14:33:10 -07:00
Harry
ef6df4467a
Get still frame from video attachments 2024-05-03 14:31:40 -07:00
Harry
f0a5dd10bd
Load animated images for v2 AttachmentStream 2024-05-03 14:31:06 -07:00
Harry
85eaeafcc7
Render precomputed audio waveforms for v2 attachments 2024-05-03 14:30:25 -07:00
Harry
9c6b593fe0
Add loading of AVAsset and CGImage directly from encrypted file handle 2024-05-03 14:29:44 -07:00
Max Radermacher
23b3061cb3
Update to LibSignal v0.46.0 2024-05-03 13:37:04 -05:00
Max Radermacher
6f96ebe77d
Swiftify part of OWSGroupCallMessage 2024-05-03 13:36:04 -05:00
Max Radermacher
1ceab3701a
Remove unused tld property 2024-05-03 12:46:10 -05:00
Sasha Weiss
a25868491f
Make defaults in TSIncomingMessageBuilder explicit and complete 2024-05-02 15:56:02 -07:00
Max Radermacher
bd93c4a3d9
Use kOversizeTextMessageSizeThreshold consistently 2024-05-02 15:32:36 -05:00
Max Radermacher
6f4fbd37cb
Fetch profiles in the NSE 2024-05-02 15:32:14 -05:00
Max Radermacher
33549e5893
Rebuild ProfileFetcher 2024-05-02 14:29:07 -05:00
Max Radermacher
03afa77603
Prefer non-SignalCoreKit APIs where possible 2024-05-02 14:23:51 -05:00
Jordan Rose
7e98708fdd Revert "OWSChatConnection: disable shadowing requests under CC"
libsignal 0.45.1 makes this work correctly.

This reverts commit f78a4dfaa5.
2024-05-02 10:57:55 -07:00
Ehren Kret
83e8c584c1 remove dead code in AppContext 2024-05-02 05:19:51 -05:00
Harry
d6dbc85694
Clean up TSResourceStream file access API 2024-05-01 16:56:10 -07:00
Max Radermacher
0b3d2a8f18
Remove and fix confusing substring methods 2024-05-01 15:46:25 -05:00
Pete Walters
678bfe195d
Add validation methods 2024-05-01 15:37:53 -05:00
Max Radermacher
73ea9c957a
Match system behavior for nicknames 2024-05-01 14:45:41 -05:00
Pete Walters
c88fbfa731
Use PNI to resolve pending invites when joining by link. 2024-05-01 13:51:53 -05:00
Pete Walters
cb45747191
Update canary to handle PNI users joinging by link requiring approval 2024-05-01 13:51:22 -05:00
Max Radermacher
8e901365ea
Remove some extra spaces from protobuf files 2024-05-01 13:29:47 -05:00
Pete Walters
b2fe4d3db3
Remove optionality in backup info struct 2024-05-01 12:55:56 -05:00
Ehren Kret
221a1c33b1 move the orphan cleaner find functions to swift 2024-05-01 10:13:12 -05:00
Ehren Kret
787ac09d4b convert processOrphansSync:shouldRemoveOrphans: to swift 2024-05-01 10:13:12 -05:00
Pete Walters
57a69f6784
Fix typo 2024-04-30 17:25:35 -05:00
Pete Walters
49608a64e6
Add backup download
Co-authored-by: Harry <109690906+harry-signal@users.noreply.github.com>
2024-04-30 17:09:31 -05:00
Pete Walters
a2e5c7dc55
Add support for uploading backups.
Co-authored-by: Harry <109690906+harry-signal@users.noreply.github.com>
2024-04-30 16:39:25 -05:00
Max Radermacher
f33cb3b187
Fix regression in substring methods 2024-04-30 16:33:01 -05:00
Pete Walters
3fbe2e851e
Add basic reservation/registration initialization call to backups.
Co-authored-by: Harry <109690906+harry-signal@users.noreply.github.com>
2024-04-30 16:06:10 -05:00
Marissa Le Coz
e4c6008c77
Turn on call reactions for beta/prod 2024-04-30 16:28:32 -04:00
Harry
e07a91b8a4
Don't send borderless flag on messages with quotes 2024-04-30 13:59:41 -05:00
Sasha Weiss
4e993f2f8f
Remove use of ExpressibleByXLiteral from MessageBackup IDs 2024-04-30 11:23:08 -07:00
Sasha Weiss
cd26ef2242
Streamline MessageBackup errors 2024-04-30 10:04:49 -07:00
Pete Walters
9527382fd7
Build backup metadata for upload 2024-04-29 19:17:00 -05:00
Pete Walters
6283e2a3fb
Support different types of upload metadata 2024-04-29 18:27:26 -05:00
Sasha Weiss
b9852224d8
Backup/Restore local group state 2024-04-29 13:49:51 -07:00
Harry
e955e607a3
Modernize + asyncify AudioWaveformManager 2024-04-29 13:11:16 -07:00
Sasha Weiss
e6616e95fa
Move some Backup IDs around 2024-04-29 12:45:11 -07:00
Pete Walters
41e7fb9218
Support passing in the upload form to attachments 2024-04-29 10:37:41 -05:00
Ehren Kret
25335708f0 move ensureArabicNumerals test into the tests for the target where it is defined 2024-04-27 13:33:46 -05:00
Ehren Kret
a99f79ceed remove availability checks for iOS 14 and 14.0 2024-04-27 13:07:03 -05:00
Ehren Kret
eb151549e0 remove iOS 13 availability checks 2024-04-27 12:51:59 -05:00
Ehren Kret
98063956b0 disallow swift code to call weak timer selector methods 2024-04-27 05:24:46 -05:00
Ehren Kret
d52f3fa92d convert NSTimer+OWS to swift 2024-04-27 04:29:01 -05:00
Sasha Weiss
fc4656daad
Fix milliseconds to seconds conversion in Backup import 2024-04-26 15:55:49 -07:00
Sasha Weiss
8ac48717f7
Change how we namespace Backup protos 2024-04-26 14:55:47 -07:00
Sasha Weiss
6920b75cb4
Disable dev-only DB corruption popup 2024-04-26 13:19:16 -07:00
Jordan Rose
4a0879eb78
Add OWSChatConnectionUsingLibsignal
The choice of whether or not to use this is controlled by a
RemoteConfig flag, ios.experimentalTransportEnabled.libsignal, but
because ChatConnectionManager is set up before RemoteConfig has even
loaded its cached settings, the flag is cached in UserDefaults, like
the shadowing kill switch setting.
2024-04-26 13:13:48 -07:00
Pete Walters
bea3a62bb2
Skip the local user when archiving recipients 2024-04-26 13:23:18 -05:00
Pete Walters
5bc53062c6
Request backup auth credentials and make initial requests. 2024-04-26 09:40:42 -05:00
Ehren Kret
b63a2d6bf4 migrate NSData+Image to swift 2024-04-26 05:24:55 -05:00
Harry
01b494ef15
Move audioWaveform generation up to TSResourceStream 2024-04-25 15:47:15 -07:00
Harry
09c92f797b
Remove now-unused TSResource.bridge 2024-04-25 15:45:50 -07:00
Harry
864719efa8
Remove final usage of bridgePointerAndNotStream 2024-04-25 15:45:20 -07:00
Harry
4b48f11636
Typo fix unenecrypted->unencrypted 2024-04-25 15:44:52 -07:00
Harry
b26bc0af7b
Define v2 AttachmentDownloadState 2024-04-25 15:44:02 -07:00
Max Radermacher
82bb803d58
Inline MobileCoinMinimal 2024-04-25 16:35:47 -05:00
Sasha Weiss
a1eb3d145a
Specify seconds in DM timer construction 2024-04-25 14:08:47 -07:00
Max Radermacher
5b8bf0f35b
Make LocalProfileChecker less aggressive 2024-04-25 16:04:47 -05:00
Max Radermacher
c77639d055
Remove some unused files from the built app 2024-04-25 16:02:35 -05:00
Max Radermacher
971d8aff5e
Update to SwiftProtobuf v1.26.0 2024-04-25 15:12:45 -05:00
Elaine
227fae1410
Add raise hand receive icons 2024-04-25 13:07:59 -06:00
Sasha Weiss
4b97d0bb16
Ensure we've refreshed at least once before finding inactive devices 2024-04-25 11:10:39 -07:00
Harry
ed7ced8c8d
Define ReferencedAttachmentTransitPointer equivalent to -Stream 2024-04-25 10:26:49 -07:00
Harry
17c025f40a
More easy TSAttachment bridging removals 2024-04-25 10:25:26 -07:00
Harry
237bf46219
Remove TSAttachment bridging in TSMessage methods 2024-04-25 10:24:00 -07:00
Harry
0dfc26d515
Don't bridge to TSAttachment in NotificationPresenter 2024-04-25 10:23:15 -07:00
Harry
e8939fa928
Some final easy story TSAttachment bridging removals 2024-04-25 10:22:30 -07:00
Harry
a6664300d3
Remove a bunch of TSAttachment bridging in stories display 2024-04-25 10:21:57 -07:00
Max Radermacher
351ed2152f
Remove some unused profile manager methods 2024-04-25 12:21:25 -05:00
Harry
7bf53f305a
Remove some TSAttachment bridges 2024-04-25 10:21:13 -07:00
Harry
5b9fb46243
Delete CloneAsSignalAttachmentRequest, implement SignalAttachmentCloner 2024-04-25 10:20:27 -07:00
Harry
60795905d1
Fork+slight cleanup of VideoDurationHelper 2024-04-25 10:19:29 -07:00
Sasha Weiss
50e0e6a3ab
More aggressively mark group call records as .ringingAccepted 2024-04-24 12:25:24 -07:00
Sasha Weiss
c26ad8a4e5
Add an "inactive linked device" megaphone 2024-04-24 11:28:33 -07:00
Ehren Kret
70ac6f28d0 migrate NSString+SSK to swift 2024-04-24 09:26:12 -05:00
Ehren Kret
b753e0e6e2 move substring(Before|After)Range: to swift 2024-04-24 07:37:21 -05:00
Max Radermacher
d6aaa92ca3
Add DBWriteTransaction.addSyncCompletion 2024-04-23 15:49:03 -05:00
Max Radermacher
dd42e10e88
Smoosh together various places that fetch profiles 2024-04-23 15:22:37 -05:00
Max Radermacher
456f2037ee
Stop putting kLocalProfileUniqueId in addresses 2024-04-23 13:58:27 -05:00
Marissa Le Coz
4412a4763d
Add reaction send support for internal 2024-04-23 14:48:17 -04:00
Pete Walters
7ee4a1e48c
Add message backup zkparams 2024-04-23 11:16:14 -07:00
Ehren Kret
b489ab7353 remove unused swift to objc exports 2024-04-23 08:33:28 -05:00
Ehren Kret
f7582117d7 fix swiftlint warning 2024-04-23 08:19:14 -05:00
Ehren Kret
f1a74bd720 use screen scale for point dimensions 2024-04-23 08:15:02 -05:00
Ehren Kret
1dafc38d02 add missing format params 2024-04-23 07:58:23 -05:00
Ehren Kret
5068cd3782 finish migrating UIImage+OWS to swift 2024-04-23 07:47:47 -05:00
Ehren Kret
b31bdbc91a migrate resizedImageToSize: to swift 2024-04-22 22:01:29 -05:00
Ehren Kret
43748e64c3 remove unnecessary image normalization 2024-04-22 17:26:11 -05:00
Ehren Kret
f1ff2da960 migrate resizedImageToFillPixelSize: to swift 2024-04-22 17:26:11 -05:00
Ehren Kret
7b370f0602 remove unused resizedWithQuality:rate: method 2024-04-22 17:26:11 -05:00
Ehren Kret
0c554525f9 migrate normalizedImage to swift 2024-04-22 17:26:11 -05:00
Harry
b9413d882f
Move TSAttachment->SignalAttachment 'cloning' into dedicated class(es) 2024-04-22 15:16:41 -07:00
Ehren Kret
154132839f migrate validJpegDataFromAvatarData: to swift 2024-04-22 16:09:33 -05:00
Harry
cb0b0c666f
Dedupe private story send messages at creation time 2024-04-22 12:58:53 -07:00
Ehren Kret
672f8b9b5c move pixelWidth, pixelHeight, and pixelSize properties to swift 2024-04-22 14:31:13 -05:00
Jordan Rose
f78a4dfaa5 OWSChatConnection: disable shadowing requests under CC
The previous comment describes the planned behavior, but it isn't
actually working yet.
2024-04-22 10:01:13 -07:00
Jordan Rose
4afddfe93d
Add a RemoteConfig flag to turn off libsignal unauth request shadowing
It's not likely we'll need this, but just in case.
2024-04-22 10:00:54 -07:00
Jordan Rose
c3da50e5d5 OWSChatConnection: Bump the libsignal shadowing timeout to 3sec
Most requests on good networks happen well under 2sec, but there have
been a few timeouts that seem spurious (distinct from a series of
timeouts all happening in a row on the libsignal websocket).
2024-04-22 09:49:58 -07:00
Pete Walters
9dd6e3f8c1
Limit the number of gradient points for a TextAttachment 2024-04-22 11:52:00 -04:00
Ehren Kret
3b51f00f6a migrate two factory methods of UIImage+OWS to swift 2024-04-22 00:17:31 -05:00
Ehren Kret
e18aab9798 remove unused @objc attributes 2024-04-21 23:42:55 -05:00
Ehren Kret
ccf8bcc257 remove unused macro 2024-04-21 23:34:52 -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
Ehren Kret
110a880d6c remove and disallow warnings in SignalServiceKitTests target 2024-04-21 09:55:30 -05:00
Ehren Kret
cd5b4c2b6a fix warning
This is a convenience initializer not a designated initializer
2024-04-20 13:35:00 -05:00
Ehren Kret
b3ecf6d071 fix warning 2024-04-19 23:41:47 -05:00
Ehren Kret
03aa10a6eb remove some simple to fix warnings 2024-04-19 23:36:23 -05:00
Ehren Kret
761bbb7f4e remove unused app readiness macros 2024-04-19 22:22:13 -05:00
Ehren Kret
81414d4e60 migrate DebugLogger to swift 2024-04-19 22:09:08 -05:00
Sasha Weiss
f1f4e6977d
Do away with ensureGroupIdMapping 2024-04-19 15:46:18 -07:00
Sasha Weiss
d8627324fa
Require a V2 group model for group creation 2024-04-19 15:37:45 -07:00
Jim Gustafson
218c6f4338
Support multi-recipient message sending
Co-authored-by: Max Radermacher <max@signal.org>
2024-04-19 16:46:09 -05:00
Max Radermacher
9a3edb9754
Compare credential times against requested times 2024-04-19 16:38:33 -05:00
Harry
ef2b8b56df
Copy paste methods only used in TSAttachmentMultisend 2024-04-19 14:28:08 -07:00
Harry
f2c112b5b5
Much ado about nothing 2024-04-19 14:27:05 -07:00
Harry
722331b9ab
Asyncify and simplify SharingThreadPickerViewController sending logic 2024-04-19 14:21:55 -07:00
Max Radermacher
b8c907a6de
Don’t reconcile badges unless they changed 2024-04-19 15:29:26 -05:00
Pete Walters
c9fb03a211
Add random IV to backup file 2024-04-19 13:11:43 -05:00
Pete Walters
f2f29ec9dd
Add padding to gzipped backups 2024-04-19 13:02:37 -05:00
Pete Walters
b58a7e0411
Change from Compression.framework to zlib 2024-04-19 12:39:44 -05:00
Harry
4921b0a083
Fix gifs redux 2024-04-19 10:12:10 -07:00
Max Radermacher
558a62dc2e
Download local avatar after Storage Service syncs 2024-04-18 17:43:41 -05:00
Sasha Weiss
df99ce0055
Post a Calls Tab notification when marking unended group calls as ended 2024-04-18 15:33:08 -07:00
Harry
ff772520c8
Fix animated stickers 2024-04-18 13:58:07 -07:00
Harry
f8f892af6a
Fix isAnimatedImage usage (gifs) 2024-04-18 11:32:20 -07:00
Pete Walters
ec9ce653a9
Joining by link can result in a group change action with a PNI 2024-04-18 13:30:25 -05:00
Max Radermacher
a241f40621
Fix a few build warnings 2024-04-17 19:11:13 -05:00
Max Radermacher
518398e2cd
Move RemoteMegaphoneFetcher to the Signal target 2024-04-17 19:10:49 -05:00
Max Radermacher
e9cdafcff4
Format sender certificate parameters correctly 2024-04-17 17:40:56 -05:00
Max Radermacher
b4325d543c
Clarify some confusing sender certificate code 2024-04-17 17:02:26 -05:00
Harry
26d85aa86c
Use provided auth's isPrimaryDevice in StorageServiceOperation instead of TSAccountManager 2024-04-17 13:07:16 -05:00
Max Radermacher
a7ec7fe131
Use version numbers that match the App Store 2024-04-17 12:49:20 -05:00
Pete Walters
37ee81baeb
Skip backing up default message expiration info. 2024-04-17 08:19:40 -05:00
Max Radermacher
bc74ec3953
Tweak or remove redundant/noisy info lines 2024-04-16 19:37:25 -05:00
Max Radermacher
2b85069f8e
Don’t use inheritance with CallService 2024-04-16 19:36:24 -05:00
Max Radermacher
ae75124475
Stop caching notification preview type 2024-04-16 19:35:19 -05:00
Harry
eb7c1a2563
Unify TSAttachmentMultisend sharesheet and main app methods 2024-04-16 16:23:34 -07:00
Max Radermacher
972bb6d37a
Tweak some info and warning lines 2024-04-16 18:10:49 -05:00
Max Radermacher
0b3fed060c
Reorganize fields on the Internal menu 2024-04-16 17:34:22 -05:00
Harry
de1cb662a1
Expose AttachmentUploadManager on deps bridge 2024-04-16 14:39:08 -07:00
Pete Walters
c8e9dcef62
Update some backup proto fields. 2024-04-16 11:36:31 -05:00
Alex Konradi
923314a147
Request new ZKC-based auth credential 2024-04-16 11:54:14 -04:00
Max Radermacher
a12ded917d
Update cdsi.proto to the latest version 2024-04-16 10:42:55 -05:00
Harry
e9c8d71a53
Rename BroadcastMediaMessageJob->TSAttachmentMultisendJob 2024-04-15 20:45:26 -07:00
Harry
d3362e2e77
Explicit compute vs cached value for TSResourceContentType metadata 2024-04-15 19:39:39 -05:00
Harry
7c1578f0db
Remove some easy-peasy TSAttachment usages 2024-04-15 19:37:30 -05:00
Harry
3c8d91b288
Define MediaGalleryAttachmentFinder 2024-04-15 14:38:59 -07:00
Harry
1eb1c377a2
Add receivedAtTimestamp to AttachmentReference 2024-04-15 14:38:20 -07:00
Max Radermacher
7b4598480b
Remove unused includeUuid query parameter 2024-04-15 16:18:50 -05:00
Harry
71e9d5571c
Remove now-unused TSResourceStore method 2024-04-15 09:45:37 -07:00
Harry
0be599960e
Add isVisualMedia equivalent to TSResourceStream 2024-04-15 09:44:57 -07:00
Harry
ec181d09b8
TSAttachment->TSResource cleanups 2024-04-15 09:44:21 -07:00
Marissa Le Coz
82752fcbd1
Add More button to Call Controls 2024-04-15 12:26:40 -04:00
Marissa Le Coz
4a638827e4
Remove old local member view 2024-04-15 12:25:33 -04:00
Harry
22209ec1a4
Use wrapped types in MediaGalleryResourceManager 2024-04-15 09:18:21 -07:00
Harry
6fdb7a2f5d
Protocolize MediaGalleryResourceManager 2024-04-15 09:17:11 -07:00
Harry
69c9dad519
Transparently wrap MediaGalleryRecordManager in MediaGalleryResourceManager 2024-04-15 09:16:45 -07:00
Harry
363868c46f
Expose wrapped types in MediaGalleryResourceFinder 2024-04-15 09:16:14 -07:00
Harry
4fca9517f4
Update a ton of CV code from TSAttachment->TSResource 2024-04-15 09:12:59 -07:00
Max Radermacher
73ad055674
Remove redundant phone numbers from OWSUserProfile 2024-04-12 22:22:49 -05:00
Max Radermacher
9ff799975f
Remove some unused code 2024-04-12 17:39:47 -05:00
Ehren Kret
f6f205b454 handle receiving a UIImage as public.image into the share extension 2024-04-12 13:43:55 -05:00
Pete Walters
425f7a5d3d
expose setProfileKeyData variant that doesn't do a fetch 2024-04-12 12:08:05 -05:00
Harry
d246764d58
Fix casting to TSAttachmentPointer 2024-04-12 10:01:47 -07:00
Harry
7108043338
Add more convenience types/methods for TSResourceReference 2024-04-12 08:00:58 -07:00
Ehren Kret
81d6bbc070 apply objective-c formatting utility 2024-04-11 22:19:16 -05:00
Ehren Kret
e9c97ba4c9 swift lint fixes 2024-04-11 22:19:16 -05:00
Ehren Kret
742d5bcec9 cleanup after MIMETypeUtil move completed 2024-04-11 22:19:16 -05:00
Ehren Kret
bdf6b9a4da remove MIMETypeUtil.h/m and finish swift conversion 2024-04-11 22:19:16 -05:00
Ehren Kret
cdc3dd6f11 remove unnecessary semicolon 2024-04-11 22:19:16 -05:00
Ehren Kret
89f131812c remove duplicate assignment 2024-04-11 22:19:16 -05:00
Ehren Kret
68fa68bcf2 cutover objc externed strings to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
4596c1d615 migrate two string constants to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
62954c6e49 migrate supported UTI type functions into swift 2024-04-11 22:19:16 -05:00
Ehren Kret
cf2a2c8148 move two more mime type util functions to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
9197f8ac8e move mimeTypeForFileExtension to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
7f90c41317 move conversion to uti type functions to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
72518cb6da add better decoration to MimeTypeUtil 2024-04-11 22:19:16 -05:00
Ehren Kret
1b3a47750f remove unused obj-c constants 2024-04-11 22:19:16 -05:00
Ehren Kret
3fe01cfc9e merge canMakeThumbnail and isVisualMedia into new function in swift 2024-04-11 22:19:16 -05:00
Ehren Kret
ed6cdb675a migrate isDefinitelyAnimated/isMaybeAnimated to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
de101a0c31 inline isAudio/isVideo/isImage/isBinaryData 2024-04-11 22:19:16 -05:00
Ehren Kret
b80ed0cdbf move getSupportExtension functions to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
1a87241194 migrate isSupported*File utility functions to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
1f05f4059c migrate isSupported mime type functions to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
ac7240a29d migrate generic extension to mime type dictionary to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
8ea47a44e2 migration supported extension to mime type dictionaries to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
76e90c3c05 decorate swift file 2024-04-11 22:19:16 -05:00
Ehren Kret
e220a1dde9 migrate generic mime type to extension map to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
99e21998f0 move animated and binary data mime type to extension dictionarys to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
47700c099a move supported mime types to extension maps to swift 2024-04-11 22:19:16 -05:00
Ehren Kret
fd94424be0 start migrating MIMETypeUtil to swift 2024-04-11 22:19:16 -05:00
Jordan Rose
582254c51a For testing, allow TLS proxies to use TCP for the outer connection
Invoke this non-recommended mode with URL username syntax of
"UNENCRYPTED_FOR_TESTING@my-proxy.net" (or more likely
"UNENCRYPTED_FOR_TESTING@my-dev-machine.local"). The connection to the
Signal servers is still secured by TLS; it's only the outer connection
from the client to the proxy that's now unauthenticated.
2024-04-11 17:08:19 -07:00
Jordan Rose
68901267fd OWSChatConnection: Improve shadowing logs
...mainly by including the original request ID, so they can be
correlated better.
2024-04-11 16:51:01 -07:00
Max Radermacher
761d328b48
Add vars for NotificationPresenter dependencies 2024-04-11 18:47:57 -05:00
Max Radermacher
5bad8c00e4
Use async-await for a few notification methods 2024-04-11 18:47:02 -05:00
Max Radermacher
d79865d1b9
Clean up some formatting in notification files 2024-04-11 18:46:10 -05:00
Max Radermacher
22c254eecd
Rename NotificationPresenter-related types 2024-04-11 18:45:25 -05:00
Max Radermacher
892b8833e0
Swiftify NotificationsProtocol 2024-04-11 18:42:33 -05:00
Max Radermacher
b5c90fb0ed
Always use #if for TESTABLE_BUILD & DEBUG 2024-04-11 18:41:25 -05:00
Pete Walters
102b8d3219
Backup AccountData 2024-04-11 16:24:01 -05:00
Harry
ae67a311ff
Replace foo as? TSAttachmentStream with foo.asResourceStream() 2024-04-11 13:46:40 -07:00
Harry
720b3f04db
Add convenience methods to TSResourcePointer 2024-04-11 13:54:20 -05:00
Max Radermacher
e82928b5e7
Move generated FeatureBuild constant 2024-04-11 12:42:57 -05:00
Harry
cae88b3c2e
Add convenience methods for fetching references and attachments 2024-04-11 09:32:05 -07:00
Harry
b63468b98b
Clean up MediaGalleryResourceFinder API 2024-04-11 09:30:36 -07:00
Harry
a6b2cd966f
Wrap MediaGalleryRecordFinder completely transparently in MediaGalleryResourceFinder 2024-04-11 09:29:47 -07:00
Harry
d9e54de6c4
Add wrapped Media Gallery types 2024-04-11 09:28:56 -07:00
Harry
c898c69ff6
Reorganize MediaGalleryFinder file with no code changes 2024-04-11 09:28:13 -07:00
Pete Walters
2c6cfd7f32
Clean up uses of AuthedAccount in profiles 2024-04-11 11:11:43 -05:00
Harry
80dd665843
Eliminate TSAttachment constructors from DebugUI and tests 2024-04-10 20:17:58 -07:00
Harry
dfaf09be1a
Download in IncomingContactSyncJobRecord without creating a TSAttachment 2024-04-10 20:17:18 -07:00
Elaine
72e812db96
Remove nicknames feature flag 2024-04-10 13:29:02 -06:00
Harry
086bc3775b
Add support for downloading transient attachments 2024-04-10 08:10:12 -07:00
Harry
2440a29d32
Set local master key if we have a PIN but no master key 2024-04-10 08:08:52 -07:00
Harry
dc1192b0ee
Rename IncomingGroupSyncJobRecord.attachmentId->legacyAttachmentId and make optional 2024-04-10 09:29:41 -05:00
Pete Walters
f7ba1643d6
Move story onboarding settings kvstore from view -> manager 2024-04-09 17:39:29 -05:00