Commit Graph

27086 Commits

Author SHA1 Message Date
Jordan Rose
c8296d0e90 SSK: Funnel all SignalServiceAddress construction through one init
...including the ones for decoding, which have special, probably
redundant logic to throw away a phone number if the UUID is already
known.
2022-02-01 11:38:21 -08:00
Igor Solomennikov
e6552c79ec Fix UI delay when sending a reply in chat.
The UI updates (including adding a new message to conversation) were
being blocked for 1 second because of the animated dismissal of message
quote panel attached to the input field.
The fix is to block UI updates just for the duration of keyboard animations.
2022-02-01 11:09:09 -08:00
Michelle Linington
e6e09c83e7 Disable broken test 2022-02-01 10:23:40 -08:00
Michelle Linington
2559fa8bb4 Disable broken test 2022-02-01 10:14:51 -08:00
Michelle Linington
deade6e28b Update Pods 2022-02-01 09:31:40 -08:00
Nora Trapp
91e6ca13ef "Bump build to 5.28.0.12." (nightly-02-01-2022) 2022-02-01 04:00:38 -08:00
Igor Solomennikov
5460fff7ff Merge branch 'igor/fix-warnings' 2022-01-31 18:02:27 -08:00
Igor Solomennikov
6c037a84af Fix typo in a comment. 2022-01-31 17:57:15 -08:00
Igor Solomennikov
d1a726f467 Do not use UIVC.automaticallyAdjustsScrollViewInsets - deprecated.
Use UIScrollView.contentInsetAdjustmentBehavior instead.
2022-01-31 15:41:18 -08:00
Igor Solomennikov
71ac19adae Do not use -[UIApplication setStatusBarHidden:animated:].
Deprecated in iOS 9.
2022-01-31 15:15:18 -08:00
Igor Solomennikov
ef2f9b3937 Fix use of deprecated -[UIApplication openURL:].
Use -[UIApplication openURL:options:completionHandler:] with empty
second and third parameters.
2022-01-31 15:15:18 -08:00
Igor Solomennikov
2cbb155e34 Fix three minor compiler warnings. 2022-01-31 15:15:18 -08:00
Igor Solomennikov
ea55469ec8 Remove deprecated UITextViewDelegate methods.
textView(_:shouldInteractWith:in:) were deprecated in iOS 10.

This change is purely deletion of code because newer UITextViewDelegate
methods:  textView(_:shouldInteractWith:in:interaction:) were already
implemented.
2022-01-31 15:15:18 -08:00
Igor Solomennikov
6848210a4c Remove UIScrollView workaround that was only used in iOS 11.0-11.2
Not needed anymore since min supported iOS version is now 12.2
2022-01-31 15:15:18 -08:00
Igor Solomennikov
ec96c7a1c6 Do not use UIVC.topLayoutGuide and UIVC.bottomLayoutGuide.
Both are deprecated in iOS 12.
2022-01-31 15:15:18 -08:00
Michelle Linington
50a9186477 Merge branch 'mlin/PR/BackoffRemoteConfigFetches' 2022-01-31 13:56:55 -08:00
Michelle Linington
2a6ca73beb PR Feedback: Remove sneaky transaction annotation 2022-01-31 13:56:41 -08:00
Michelle Linington
4b6f40eaa0 Lint 2022-01-31 13:56:41 -08:00
Michelle Linington
0592b77faa Remote config fetch failures should exponentially back off 2022-01-31 13:56:41 -08:00
Martin Böttcher
5e7c4fd920 Merge branch 'martin/IOS-2130' 2022-01-31 21:05:32 +01:00
Michelle Linington
cbcb4251e4 Public initializer 2022-01-31 21:04:05 +01:00
Michelle Linington
98048d669b Removed unnecessary check for valid launch time 2022-01-31 21:04:05 +01:00
Michelle Linington
9bc1c492a5 Lint 2022-01-31 21:04:05 +01:00
Michelle Linington
8f477657c1 Fix lint script 2022-01-31 21:04:05 +01:00
Michelle Linington
e4d324fe5d Re-add log message 2022-01-31 21:04:05 +01:00
Michelle Linington
c0cddbb71d Lint 2022-01-31 21:04:05 +01:00
Michelle Linington
bae392bb4e Update Pods 2022-01-31 21:04:05 +01:00
Michelle Linington
97409f3295 Improves performance of launch jobs
Randall hit an issue where his device would take a few seconds to start
up. His logs indicate that his device is spending time running
LaunchJobs.

The first change here is to make sure we explicitly set the launch job
work at an ultra-high priority. This is okay, since we don't actually
present UI until after we finish these jobs. Running this work at
UserInteractive is appropriate since it quite literally prevents the
user from interacting with the app. There's also no other time-sensitive
UI work we need to be doing (like running animations) that we could be
contending with.

The second change is to add a bit more logging that allows us to monitor
the amount of work these jobs are doing. This will allow us to see if
these jobs are performing an excessive amount of work.

Finally, I moved these LaunchJobs to Swift. Mostly because the ObjC
implementations were block based. The additional code was going to
indent things further and our linter aggressiely indents blocks to begin
with. Moving this to Swift is much more readable.
2022-01-31 21:04:05 +01:00
Nora Trapp
e417c1c184 "Bump build to 5.28.0.11." (nightly-01-31-2022) 2022-01-31 21:04:05 +01:00
Martin Böttcher
98b86654cc small code change 2022-01-31 21:02:07 +01:00
Michelle Linington
9291f0a141 Merge branch 'mlin/PR/SlowLaunchJobs' 2022-01-31 11:00:50 -08:00
Michelle Linington
6fc0909234 Public initializer 2022-01-31 11:00:13 -08:00
Michelle Linington
10b2fbd15e Removed unnecessary check for valid launch time 2022-01-31 11:00:13 -08:00
Michelle Linington
70bb7b8809 Lint 2022-01-31 11:00:13 -08:00
Michelle Linington
220a49134e Fix lint script 2022-01-31 11:00:13 -08:00
Michelle Linington
e1da8368f6 Re-add log message 2022-01-31 11:00:13 -08:00
Michelle Linington
91aaffe16b Lint 2022-01-31 11:00:13 -08:00
Michelle Linington
ba90bd25f6 Update Pods 2022-01-31 11:00:13 -08:00
Michelle Linington
06a83d065c Improves performance of launch jobs
Randall hit an issue where his device would take a few seconds to start
up. His logs indicate that his device is spending time running
LaunchJobs.

The first change here is to make sure we explicitly set the launch job
work at an ultra-high priority. This is okay, since we don't actually
present UI until after we finish these jobs. Running this work at
UserInteractive is appropriate since it quite literally prevents the
user from interacting with the app. There's also no other time-sensitive
UI work we need to be doing (like running animations) that we could be
contending with.

The second change is to add a bit more logging that allows us to monitor
the amount of work these jobs are doing. This will allow us to see if
these jobs are performing an excessive amount of work.

Finally, I moved these LaunchJobs to Swift. Mostly because the ObjC
implementations were block based. The additional code was going to
indent things further and our linter aggressiely indents blocks to begin
with. Moving this to Swift is much more readable.
2022-01-31 11:00:13 -08:00
Nora Trapp
4e35ed0171 "Bump build to 5.28.0.11." (nightly-01-31-2022) 2022-01-31 04:00:33 -08:00
Martin Böttcher
4a86ff0f4c corrected safeAreaInsets handling of context menu 2022-01-31 11:06:41 +01:00
Martin Böttcher
f331f00646 UI tweaks to context menus 2022-01-31 09:31:17 +01:00
Nora Trapp
1c660f88b5 "Bump build to 5.28.0.10." (nightly-01-30-2022) 2022-01-30 04:00:31 -08:00
Igor Solomennikov
fe0db0bf7c Clean up frameworks.
Remove dependencies on AddressBook and AddressBookUI.
Use CoreServices instead of MobileCoreServices.
2022-01-29 14:41:54 -08:00
Nora Trapp
41bb89b2f0 "Bump build to 5.28.0.9." (nightly-01-29-2022) 2022-01-29 04:00:28 -08:00
Jordan Rose
9ef7f44d98 Merge branch 'jrose/faster-localAddress' 2022-01-28 18:33:49 -08:00
Jordan Rose
2c6dc927d8 SSK: Prefer SignalServiceAddress(uuid:phoneNumber:) if we have a UUID
...rather than stringifying the UUID just to parse it back. For
-[TSAccountManager localAddress] in particular the savings are
surprisingly substantial because the UUID string went into an
autorelease pool.
2022-01-28 18:02:31 -08:00
Jordan Rose
266fa28440 Merge branch 'jrose/better-group-update-cache-key' 2022-01-28 17:47:28 -08:00
Jordan Rose
8a90831e04 GV2: Don't stringify the cache key for GV2 updates
The cache key is the group secret params data; stringifying it just
makes the cache slower.
2022-01-28 15:56:20 -08:00
Jordan Rose
27841970f3 Merge branch 'jrose/better-paged-group-updates' 2022-01-28 15:54:31 -08:00