Commit Graph

29660 Commits

Author SHA1 Message Date
Max Radermacher
27c985dcfd Don’t try to fetch profiles for e164s 2022-11-03 13:06:00 -07:00
Max Radermacher
ba238915a3
Clean up avatar download during profile fetches 2022-11-03 13:03:18 -07:00
sashaweiss-signal
a49d4c38ec "Bump build to 6.2.0.0." (nightly-11-03-2022) 2022-11-03 12:36:54 -07:00
sashaweiss-signal
1eafb41655 "Bump build to 6.1.0.0." (nightly-11-03-2022) 2022-11-03 12:35:30 -07:00
sashaweiss-signal
a929cd13cf Update translations 2022-11-03 12:33:14 -07:00
sashaweiss-signal
ec53d9946e Update release notes 2022-11-03 12:29:14 -07:00
Sasha Weiss
9d3e4043d1
Conditional for internal remote megaphone test 2022-11-03 12:26:31 -07:00
Max Radermacher
84a670bc2e Remove ReadyFlag.queueMode.
It’s unused and doesn’t appear to have ever been used.
2022-11-03 11:58:44 -07:00
Evan Hahn
771a6f5488 Swiftify OWSDisappearingMessagesJobTest
This is a test-only change.
2022-11-03 11:48:52 -07:00
Evan Hahn
aef20e182b Remove unused groupBy function
`git grep -w groupBy` returns no results after this change.
2022-11-03 11:42:19 -07:00
Evan Hahn
25aef2ee45 Remove two unused blocklist methods
This removes `showBlockSignalAccountActionSheet` and
`showUnblockSignalAccountActionSheet`, neither of which are used (nor
return any results with `git grep` after this change).
2022-11-03 11:41:41 -07:00
Sasha Weiss
c7dd7f4c84
Actions for donation megaphone 2022-11-03 11:39:37 -07:00
Sasha Weiss
b05d5710d1
Fix shared proxy URL format
Co-authored-by: Daniel Aberger <da@ixab.de>
2022-11-03 11:31:09 -07:00
Sasha Weiss
7ab05230af
Logging when updating StorageService 2022-11-03 11:14:02 -07:00
Harry
932f3db136
Don't scroll stories list when empty 2022-11-03 07:12:24 -05:00
Evan Hahn
5eebe44c77 Remove unused UI utility functions
This removes `UIUtil.applyRoundedBorderToImageView` and
`UIUtil.removeRoundedBorderToImageView`, which are unused.
2022-11-03 07:07:50 -05:00
Nora Trapp
724585ae84 "Bump build to 6.1.0.8." (nightly-11-03-2022) 2022-11-03 04:00:34 -07:00
Igor Solomennikov
1399301b8f
Fix text story composer bug that might cause duplicate input.
To hit this bug user would need to switch to "condensed" text style and input
text using suggestion bar above the on-screen keyboard. Each word from the
suggestion bar would be added twice.
2022-11-02 17:29:56 -07:00
Igor Solomennikov
caa894631a Update text style selection button images in text story composer.
Use 24dp images instead of 28dp to match other buttons.
2022-11-02 17:25:31 -07:00
Igor Solomennikov
2df35033f2
Change TSAttachmentPointerState to a closed enum.
Fix a compiler warning about not handling unknown values.
2022-11-02 15:49:15 -07:00
Igor Solomennikov
2f3ad73dc3
Fix photo overlay text might be clipped in image editor.
Use NSTextStorage instead of NSMutableAttributed string when calculating text size.
NSTextStorage surprisingly provides more accurate text metrics when text contains
emojis and certain "complex" glyphs (eg Chinese hieroglyphs).

Also fix another minor issue that might cause text to be laid out differently
when being edited.
2022-11-02 15:42:44 -07:00
Sasha Weiss
b67b109c19
Update WebRTCCommit in Signal-Info.plist 2022-11-02 14:46:38 -07:00
Harry
2b6d1da564
Un-index deleted private story threads. Omit disabled private story threads from search results
* Un-index deleted private story threads. Omit disabled private story threads from search results

* Fix bad debug assert on empty picker search results

* remove extra didRemove FTS check
2022-11-02 11:18:55 -07:00
Sasha Weiss
1cf1872771
Add LocalUserLeaveGroupJobQueue to SSKEnvironment 2022-11-02 10:53:21 -07:00
Sasha Weiss
39f927683f
Be more conservative about when we re-upload the local profile for commitments 2022-11-02 08:54:51 -07:00
Nora Trapp
ad6d12cea2 "Bump build to 6.1.0.7." (nightly-11-02-2022) 2022-11-02 04:00:40 -07:00
Sasha Weiss
a2e138abfb
Ensure logging during NSE initialization is recorded 2022-11-01 20:32:54 -07:00
Jordan Rose
a2429c1900 Make sure a call has been reported to CallKit before ending it
Reporting an incoming call is an asynchronous operation, and we've
seen some cases where a hangup that arrives too soon after a ring
results in the call *not* ending from the OS's perspective. Explicitly
track this with a new "pending" state, during which cancelling a call
will get delayed. (There's nothing clever here for *how* to delay,
just a retry, because this isn't worth optimizing for.)
2022-11-01 18:19:09 -07:00
Jordan Rose
55af998815 Use RingRTC to validate 1:1 call offer messages in the NSE
This avoids an issue where the NSE might decide to wake up the main
app to respond to an Offer, but then the RingRTC in the main app
decides the ring has already expired. We've been careful about
exposing new RingRTC APIs to the NSE because we don't want to dirty
too much memory, but this particular one should be safe.
2022-11-01 16:56:29 -07:00
Jordan Rose
299346d7b5 Update to RingRTC v2.21.4 2022-11-01 16:56:29 -07:00
Igor Solomennikov
9000a5cbb9
Add support for appropriate fonts for different scripts in Text Story composer / viewer. 2022-11-01 16:16:12 -07:00
Igor Solomennikov
981d8ecf64
Update iPad keyboard handling logic in Text Story composer.
Properly handle floating keyboards with iPhone-like layouts.
2022-11-01 16:14:55 -07:00
Evan Hahn
a941c82c14
Prefer isEmpty with strings
This change may improve performance slightly but should have no other
user impact.

`myString.isEmpty` is faster than `myString.count == 0` or equivalent,
because computing `count` may require iterating over the string.

I tried to fix all occurrences of this.

Tested this by sending a message in a group and doing a full
re-registration, just in case I broke something there.
2022-11-01 17:53:46 -05:00
Evan Hahn
b46250e3e8 Reference AGPL on help screen
Another followup to 370ff654e7.
2022-11-01 16:45:24 -05:00
Harry Sanabria
f0ff72beae Fix accessibility labels on VoiceOver custom actions 2022-11-01 14:32:21 -07:00
Evan Hahn
03dc63da5f
Update Pods 2022-11-01 16:25:48 -05:00
Evan Hahn
04a604cd3e Update SSZipArchive to 2.5.2
This updates `SSZipArchive` from 2.1.4 to 2.5.2.

Notably, we need a custom podspec because we need to lower its
deployment target.

Tested this by submitting debug logs successfully.
2022-11-01 16:23:22 -05:00
Max Radermacher
9865d398f7 Update top-level LICENSE file to AGPL
Follow-up to 370ff654e7.
2022-11-01 12:08:09 -07:00
george-signal
1f5d52081c
Encapsulate mutable state of MediaGallerySections.
This is the first baby step toward imbuing
MediaGallerySections with multi-version
concurrency.
2022-11-01 11:22:24 -07:00
Harry
793a1cee45
Add accessibilityLabel to items in PhotoLibrary
* Refactor PhotoGridItem to be more compile-time safe

* Add accessibilityLabel to items in PhotoLibrary

* run auto genstrings

* fix build issue

Co-authored-by: Meher Kasam <meheranandk@gmail.com>
2022-11-01 10:46:33 -07:00
Nora Trapp
ac5b4ea717 "Bump build to 6.1.0.6." (nightly-11-01-2022) 2022-11-01 04:00:28 -07:00
Evan Hahn
b72449490c Use contains instead of filter(...).count > 0
This small change should speed up the attachment approval process.
2022-10-31 17:15:31 -07:00
Sasha Weiss
e4f5e48ac9
Remove dead code, and organize some live code 2022-10-31 16:01:35 -07:00
Max Radermacher
00378ea208
Handle theme changes in ReminderView
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2022-10-31 15:45:06 -07:00
Evan Hahn
3fa6040799 Update SwiftProtobuf to 1.20.2 2022-10-31 16:39:44 -05:00
Harry
e90639bcab
Make linter print useful output when failing on precommit
* Make linter print useful output when failing on precommit

* Update Scripts/precommit.py

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2022-10-31 14:05:27 -07:00
Harry
3bf5b8ed10
Add stories kill switch 2022-10-31 12:30:56 -07:00
Max Radermacher
92ae34ee9c Enable Stories for everyone 2022-10-31 11:33:02 -07:00
Harry
48da03d33f
Prevent story context drags while scroll view is decellerating 2022-10-31 09:44:27 -07:00
Evan Hahn
85a0bb8566 Remove unused blurhash utility
This removes `isDarkBlurHash`. Its last usage was in
875491a7cd.
2022-10-31 09:35:20 -05:00