Commit Graph

20908 Commits

Author SHA1 Message Date
Matthew Chen
9ff21657b7 Convert profile view to Swift. 2021-01-14 22:25:44 -03:00
Jordan Rose
caf406bd5b Merge branch 'jrose/message-request-network-failures' into release/5.3.0 2021-01-14 16:38:51 -08:00
Jordan Rose
7b1b8772d1 SSK: Treat two more errors as "network failure"
This avoids a spurious owsFailDebug.
2021-01-14 16:38:37 -08:00
Jordan Rose
2a6503cc1f Merge branch 'jrose/flush-main-dispatch-queue' into release/5.3.0 2021-01-14 16:38:09 -08:00
Jordan Rose
75f179f572 SSK: Flush DispatchQueue.main after every test
There are a lot of events that get dispatched onto the main queue
(often /from/ the main queue), and processing them during the setup
for the subsequent test can cause problems. In particular, the
notification for setting up a local number in -[OWSMessageManagerTest
test_GroupUpdate] was occasionally being processed in the subsequent
-test_GroupUpdateWithAvatar, depending on how long GRDB took to set up
in the second test.
2021-01-14 16:37:53 -08:00
Matthew Chen
21372a603a Merge branch 'charlesmchen/logNonRenderableMessages' into release/5.3.0 2021-01-14 19:01:08 -03:00
Matthew Chen
c6f7255d76 Improve logging around dropped incoming messages. 2021-01-14 18:59:56 -03:00
Jordan Rose
1b9f0b16f4 Clean up code in ImagePickerController after a0c3beaa06 2021-01-14 09:34:12 -08:00
Jordan Rose
863eaf0d1c Merge branch 'jrose/file-picker' into release/5.3.0 2021-01-14 09:31:35 -08:00
Jordan Rose
677970c277 Remove unused localizable strings from previous changes 2021-01-14 09:31:04 -08:00
Jordan Rose
cdde07778e Make the "File" attachment directly open the file picker
...never the photo picker. This removes the notion of "attach a photo
as a file", which the previous commits have made equivalent to
attaching a photo any other way.
2021-01-14 09:31:04 -08:00
Jordan Rose
c230ca1af6 Merge branch 'jrose/compress-all-image-attachments' into release/5.3.0 2021-01-14 09:30:19 -08:00
Jordan Rose
831e3c647b Encode images to PNG instead of JPEG if they have an alpha channel 2021-01-14 09:30:10 -08:00
Jordan Rose
6eb1d3cffd Compress all images as JPEG except those that are "sticker-like"
This makes for a more uniform experience and optimizes for bandwidth
when attaching a JPEG that's under our threshold but still pretty big.
Previously we'd send that along after stripping metadata, but now
we'll recompress it regardless.

Sticker-like images are opted out because they usually contain content
that's better represented in a compressed lossless format due to the
use of solid colors...and also we don't want to lose transparency if
we don't need to.

Note that isBorderless is sometimes equivalent to the "sticker-like"
check, but we don't want to rely on that here. isBorderless is a
presentation option.
2021-01-14 09:30:10 -08:00
Jordan Rose
a0c3beaa06 Resize images-as-documents and pasted images as well
Having multiple entry points for this is confusing. If we ever add
back a "send full quality" option, we'll support it everywhere.
2021-01-14 09:30:10 -08:00
Jordan Rose
2014ccc114 Fix JPEG compression to 0.6 after some investigation 2021-01-14 09:30:10 -08:00
Matthew Chen
239ffa06c9 Merge branch 'charlesmchen/messageLayoutEdgeCase' into release/5.3.0 2021-01-14 13:23:36 -03:00
Matthew Chen
e218477a81 Fix message cell layout glitch. 2021-01-14 13:23:14 -03:00
Jordan Rose
37f7403de3 Merge branch 'jrose/better-metadata-stripping' into release/5.3.0 2021-01-13 18:07:19 -08:00
Jordan Rose
273b86e1db Make sure to strip image metadata losslessly when possible
Uses the nigh-undocumented CGImageDestinationCopyImageSource instead
of CGImageDestinationAddImageFromSource to avoid having ImageIO
re-encode the image contents.* If that fails, falls back to the
standard resize-as-JPEG logic in all cases rather than just reporting
a failure to strip metadata.

* https://developer.apple.com/library/archive/qa/qa1895/_index.html
2021-01-13 18:07:07 -08:00
Nora Trapp
121660f466 "Bump build to 5.3.0.0." (Internal) 2021-01-13 12:46:59 -08:00
Nora Trapp
9bffa761be "Bump build to 5.2.1.0." (Internal) 2021-01-13 12:45:20 -08:00
Nora Trapp
6f72ac690d Update changelog for 5.2 2021-01-12 23:28:03 -08:00
Nora Trapp
9f3baab36e "Bump build to 5.2.0.6." (Internal) 2021-01-12 21:46:53 -08:00
Nora Trapp
ed6b8c1f42 Feature flags for .qa. 2021-01-12 21:46:47 -08:00
Nora Trapp
3583f7bfac "Bump build to 5.2.0.5." 2021-01-12 21:46:43 -08:00
Nora Trapp
dbdafeea3e Feature flags for .beta. 2021-01-12 21:46:40 -08:00
Nora Trapp
c48a1a544f "Bump build to 5.2.0.4." 2021-01-12 21:46:35 -08:00
Nora Trapp
1f05c908c2 Feature flags for .production. 2021-01-12 21:46:32 -08:00
Nora Trapp
c03b9bd79e Sync translations 2021-01-12 21:46:16 -08:00
Ewout ter Hoeven
eddb0e3560 Add FUNDING.yml to display sponsor button in GitHub
Displays the Sponsor button on top of the GitHub interface. This file is similar to the FUNDING.yml file on the Signal-Desktop repository.
2021-01-12 21:38:00 -08:00
Michelle Linington
8a530b4c88 Merge branch 'mlin/PR/iOS12_Banner_Fixes' into release/5.2.0 2021-01-12 21:35:42 -08:00
Michelle Linington
a0b20f4d77 Fix some banner misbehavior on iOS 12
Fixes a collection view batched update crash on iOS 12
Adds a bottom layout margin to the banner for home button devices
Banner now listens for external changes to active card set
Clear banner on successful PIN restoration
2021-01-12 21:34:39 -08:00
Nora Trapp
444090f4b0 Don't show mutual groups for deleted threads 2021-01-12 20:35:10 -08:00
Nora Trapp
3bf19501cd Fix tests 2021-01-12 20:28:36 -08:00
Nora Trapp
87eedefec0 Sync translations 2021-01-12 20:26:48 -08:00
Nora Trapp
61a9502199 Group link promo design feedback 2021-01-12 20:16:24 -08:00
Nora Trapp
71b9f51e12 Ignore mutual groups where the local user is not a member or the remote user is not a full member. 2021-01-12 18:10:49 -08:00
Nora Trapp
ae3a6ab99e Use refresh icon for session refresh 2021-01-12 18:10:49 -08:00
Nora Trapp
f365af304c "Bump build to 5.2.0.3." 2021-01-12 17:33:37 -08:00
Nora Trapp
1dff600b1a Feature flags for .beta. 2021-01-12 17:33:30 -08:00
Nora Trapp
34dff227d7 Sync translations 2021-01-12 17:23:04 -08:00
Michelle Linington
7a5ba18038 Re-add missing localizations 2021-01-12 17:14:31 -08:00
Nora Trapp
ac24f40e9e "Bump build to 5.2.0.2." (Internal) 2021-01-12 17:04:37 -08:00
Nora Trapp
706acb254a Sync translations 2021-01-12 17:03:19 -08:00
Matthew Chen
7fd6dfbca0 Fix build break. 2021-01-12 21:53:16 -03:00
Nora Trapp
806dbd7257 Replace decryption errors with single 'session refresh' message 2021-01-12 16:45:35 -08:00
Jordan Rose
122edf4c6e Merge branch 'jrose/better-video-attachments' into release/5.2.0 2021-01-12 16:43:27 -08:00
Jordan Rose
be4d7fa9ac Make sure the photo picker always gets the latest version of an image 2021-01-12 16:43:01 -08:00
Jordan Rose
c799f663c8 Always re-encode video attachments
This is more consistent, results in smaller videos, and makes sure
we're stripping metadata.
2021-01-12 16:43:01 -08:00