Commit Graph

29300 Commits

Author SHA1 Message Date
Evan Hahn
b5e64e9fce Speed up link preview search code
Previously, we collected all URL matches and then searched through them.
Now, we search lazily, which should improve performance.

I added a perf test that repeats a URL a million times. The new code
finishes in ~0.001 seconds on my machine. The old code does not finish.
2022-10-04 14:09:00 -07:00
Evan Hahn
a066511a62 Remove useless test setup/teardown
We had a lot of functions like this, which are useless:

    override func setUp() {
        super.setUp()
    }

This removes them.
2022-10-04 14:06:34 -07:00
Sasha Weiss
814f6c1bf2
Skip inactive experience IDs, and opportunistically clear unknown ones 2022-10-04 12:22:24 -07:00
Max Radermacher
f87374dac4 Remove old Transifex files
These haven’t been touched in 8 years, so it seems like we probably
don’t need them, and we definitely won’t need them after moving to
Smartling.
2022-10-04 12:00:43 -07:00
Harry
6a88e6c967
Revert "Remove pre-Xcode 14 status bar workarounds"
This reverts commit 9f731edae9.
2022-10-04 09:17:33 -07:00
Sasha Weiss
7fb1da0cec
Migrate ExperienceUpgrade models to SDSCodableModel 2022-10-04 08:52:03 -07:00
Nora Trapp
a15cb0b063 "Bump build to 5.57.0.3." (nightly-10-04-2022) 2022-10-04 04:00:57 -07:00
Nora Trapp
49ed068fcd Allow sharing text to stories 2022-10-03 21:35:32 -07:00
Nora Trapp
34bc3fc919 Allow forwarding text stories 2022-10-03 21:35:32 -07:00
Nora Trapp
b9842b5eb2 Allow forwarding to stories 2022-10-03 21:35:32 -07:00
Nora Trapp
1c4772ebe0 Fix truncation of 'Tap to add to a story' 2022-10-03 21:35:32 -07:00
Nora Trapp
ba90b3989d Fix the number of stories rendered on conversation picker 2022-10-03 21:35:32 -07:00
Nora Trapp
8f8ec0c249 Show red X when picking contacts to exclude 2022-10-03 21:35:32 -07:00
Nora Trapp
3d6f88fa0b Update story subtitle label colors 2022-10-03 21:35:32 -07:00
Nora Trapp
1645e76c2b Fix disabling stories from 'My Stories' view 2022-10-03 21:35:32 -07:00
Nora Trapp
3c2096ad71 fix reversal of photo and story view buttons 2022-10-03 21:35:32 -07:00
Nora Trapp
5f3b5e841c Delete stories sent to a private list when it's deleted 2022-10-03 21:35:32 -07:00
Nora Trapp
6eca0a0ef2 Remotely delete all sent stories when deactivating stories 2022-10-03 21:35:32 -07:00
Nora Trapp
1b243581db Update '+ New Story' Button 2022-10-03 21:35:32 -07:00
Harry
4100ee177b
Fix story video flickering due to excessive StoryItemMediaView recreation.
* Fix story video flickering due to excessive StoryItemMediaView recreation.

* remove debug assert if no attacgment found on dismiss, only affects debug builds but can happen if deleting while in the viewer

* fix text color for replies button on iOS 13

* pr feedback

* always set caption even if nil
2022-10-03 21:26:50 -07:00
Harry
74228f424e
Add StoryContextAssociatedData to compute story tab badge count without hidden stories
* Add StoryContextAssociatedData and db migrations

* Remove hideStory from ThreadAssociatedData

* Remove lastViewedStoryTimestamp and lastReceivedStoryTimestamp from TSThread

* drop deprecated columns in db migration

* add indexes

* dump schema.sql

* Update unviewed stories SQL query

* fix thread fetching for incoming story messages

* reload story tab badge when StoryContextAssociatedData changes

* Add test for TSGroupModel backwards-compatible deserialization

* move db migration

* Only use StoryContextAssociatedData for story badge count

* update StoryContextAssociatedData lastReceivedTime when a story message is deleted

* catch group threads for outgoing story messages too

* clean up sql query

* Only update lastReceievedStoryTimestamp for remote deletions

* add latestUnexpiredTimestamp to StoryContextAssociatedData
2022-10-03 21:16:01 -07:00
Evan Hahn
4a0141be41
Omit E164 from outgoing envelopes
[Android][0] and [Desktop][1] have already removed this field. This
follows suit.

The highlights:

- `SignalService.proto` removes some fields by making them `reserved`
- `ProtoWrappers.py` updates our code generation to support addresses
  that only have a UUID (previously, you needed both a UUID and E164
  field)
- Most everything else is removing E164s

[0]: 9c266e7995
[1]: 2b0d3cab40
2022-10-03 23:55:39 +00:00
Evan Hahn
56f8548436 Remove old test utility file
This removes `TestUtil.h`.

The `test` macro was the only thing used from this file and it was
identical to `XCTAssert`.
2022-10-03 22:58:02 +00:00
Harry
9f731edae9
Remove pre-Xcode 14 status bar workarounds 2022-10-03 15:29:49 -05:00
Evan Hahn
d3ec8f1fd1 Remove unused arguments from proto wrapper script
`--add-description` and `--skip-address-helpers` are unused in the
project. This removes them, along with some commented-out arguments.
2022-10-03 19:43:37 +00:00
Harry
cd0966821c
Allow context menu action text to apply text color
* Allow context menu action text to apply text color

* only remove vibrancy effect if actually using context menu text colors
2022-10-03 11:51:32 -07:00
Harry
e7b8f098dd
Increase story video max length to 30.999 seconds for android compatibility 2022-10-03 11:44:49 -07:00
Nora Trapp
00d83257e9 "Bump build to 5.57.0.2." (nightly-10-01-2022) 2022-10-01 04:00:47 -07:00
Igor Solomennikov
28faf6e0ae
Use "compact" layout for link preview panel when no image. 2022-09-30 12:27:33 -07:00
Nora Trapp
ba91920040 "Bump build to 5.57.0.1." (nightly-09-30-2022) 2022-09-30 04:00:45 -07:00
Nora Trapp
55aea652ee Make sure we create a contact thread for any received private story 2022-09-29 16:48:39 -07:00
Max Radermacher
02ca8e2a99
Include http headers on web socket connections
Once initialized, a URLSession’s configuration can’t be changed. In
order to transfer the headers, assign them to the configuration before
assigning the configuration to the session.
2022-09-29 16:36:42 -07:00
sashaweiss-signal
487405ef08 "Bump build to 5.57.0.0." (nightly-09-29-2022) 2022-09-29 16:28:51 -07:00
Max Radermacher
c210a00e53 Update release notes 2022-09-29 16:17:38 -07:00
Max Radermacher
5bffed3e22 Sync translations with Smartling 2022-09-29 16:17:38 -07:00
Max Radermacher
39135003a4 Fetch translations from Smartling
Smartling exposes a simple REST API that’s fairly easy to adopt.

Some differences from the old approach:

- We get UTF-8 back instead of UTF-16, so there’s no need to use iconv.

- We don’t support “nb_NO”, so we don’t need to remove it each time we
  fetch translations.

- We get back English fallbacks for .stringsdict files, so there’s no
  need to merge them manually ourselves.

- We no longer support country-specific locales *and* the root language,
  so we don’t need to merge, for example, “es” into “es-MX”.

- We handle language mapping & duplication inside the Swift script,
  which will hopefully be more reliable than cp’ing directories.
2022-09-29 16:13:06 -07:00
Max Radermacher
ef1f2fcb33 Temporarily remove the “yue” localization 2022-09-29 16:13:06 -07:00
Max Radermacher
0db3fb8106 Remove unsupported localizations
Also, clean up “Known Regions” in Xcode.
2022-09-29 16:13:06 -07:00
Evan Hahn
e060f8faac
Set "New Message" shortcut dynamically, fixing bugs
This fixes two bugs with the "New Message" shortcut:

- It was available even when you weren't registered (e.g., when you just
  installed the app)
- It was not translated, so users always saw "New Message" even if their
  phone wasn't in English
2022-09-29 22:04:56 +00:00
Nora Trapp
b962b752cb Don't auto-migrate groups on app launch 2022-09-29 09:35:00 -07:00
Nora Trapp
6930ffe2fa Remove old group capabilities 2022-09-29 09:35:00 -07:00
Nora Trapp
9c1632ce7d "Bump build to 5.56.0.13." (nightly-09-29-2022) 2022-09-29 04:00:40 -07:00
Evan Hahn
7de920dd47
Swiftify AppDelegate registration change event handler 2022-09-28 10:44:38 -07:00
Nora Trapp
627b9bb568 "Bump build to 5.56.0.12." (nightly-09-28-2022) 2022-09-28 04:00:38 -07:00
Nora Trapp
7e55c6fba3 "Bump build to 5.56.0.11." (Internal) 2022-09-27 17:56:41 -07:00
Nora Trapp
e354e94587 Show proxy connection toasts from sheet view 2022-09-27 17:56:07 -07:00
Nora Trapp
659fc2c009 Address feedback on proxy settings screen 2022-09-27 17:55:11 -07:00
Nora Trapp
835128419e Cleanup NSE logging 2022-09-27 17:05:05 -07:00
Nora Trapp
dd37ca526d Allow NSE to manage lifetime of proxy relay server 2022-09-27 17:05:05 -07:00
Evan Hahn
abbbad7f90 Remove useless setup/teardown from test 2022-09-27 23:23:59 +00:00