Commit Graph

29262 Commits

Author SHA1 Message Date
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
Sasha Weiss
063acc1419
Batch messageId notification cancellations 2022-09-27 14:26:44 -07:00
Evan Hahn
4de8ffa6af
Remove dead accessor from legacy message type
This change should have no user impact.

`TSInvalidIdentityKeyReceivingErrorMessage` had an unused method,
`theirSignalId`. This removes it.

`git grep -i theirSignalId` returns no results after this change.

I think this is a useful change on its own, but will also be useful in
an upcoming change.
2022-09-27 16:05:59 -05:00
Igor Solomennikov
55beca7051
Limit text story length in composer to 700 glyphs 2022-09-27 16:05:08 -05:00
Max Radermacher
7f3c7bbb9f Specify the .URL type for “Proxy Address” field 2022-09-27 11:52:27 -07:00
Evan Hahn
e2f7ee47f4
Remove unused methods from message processing test
`MessageProcessingIntegrationTest` has some unused methods. These were
added in ec66f3b21e. According to George,
they're no longer needed and may have been added mistakenly.
2022-09-27 11:49:29 -07:00
Evan Hahn
653cb30a59 Use reserved in protobufs
_This change should have no user impact._ And you can see that the only
changes to generated files are in comments.

Before this change, we used comments to denote reserved or deprecated
fields. This works, but I think we should instead use the `reserved`
keyword, which offers a few advantages. From [the protobuf docs][0]:

> If you update a message type by entirely removing a field, or
> commenting it out, future users can reuse the field number when making
> their own updates to the type. This can cause severe issues if they
> later load old versions of the same .proto, including data corruption,
> privacy bugs, and so on. One way to make sure this doesn't happen is
> to specify that the field numbers (and/or names, which can also cause
> issues for JSON serialization) of your deleted fields are reserved.
> The protocol buffer compiler will complain if any future users try to
> use these field identifiers.

This updates our proto files to use `reserved` instead of comments. It
also adds support to our wrapper script. (I moved a few things around in
that script, too, for consistency.)

I think this is a useful change on its own, but I think it'll make
things a little better when we deprecate some fields, which we're
planning to do soon.

[0]: https://developers.google.com/protocol-buffers/docs/proto3#reserved
2022-09-27 18:45:38 +00:00
Sasha Weiss
f8bacbbf42
Better handle missing microphone recording permissions when using in-app camera 2022-09-27 11:00:36 -07:00
Harry
55984ff371
Use native context menu for story rows
* Create GenericContextAction to merge code paths for native context menu, our custom reimplementation, and table row leading/trailing actions

* Add go to chat leading action for story rows

* use native context menu for story row long press
2022-09-27 10:06:19 -07:00
Harry
da06c1357c
Show my story privacy settings the first time you send to my story
* Add first send story privacy field to AccountRecord proto

* Store hasSetMyStoriesPrivacyKey on StoryManager

* sync hasSetMyStoriesPrivacy state

* Reuse MyStorySettingsViewController in a sheet view controller

* Show my story privacy settings from conversation picker if unset when selecting my story destination

* reload my story row to change subtitle

* pr feedback
2022-09-27 10:06:01 -07:00
Igor Solomennikov
7d862d87ae
Fix link preview image size when there's 5 lines of text
Let thumbnail grow vertically to match text height.
2022-09-27 06:17:32 -05:00
Nora Trapp
c9889e6b6b "Bump build to 5.56.0.10." (nightly-09-27-2022) 2022-09-27 04:00:35 -07:00
Harry
8c702c8a02
Add Signal-Staging build scheme 2022-09-26 17:11:02 -07:00
Harry
c544e46ee1
Story fix bargain bin
* fix conflict between story viewer context menu drag and navigational pan gestures

* Fix RTL chevrons on story list

* swipe only between hidden stories OR visible stories, never both

* Add table row swipe actions for hiding/unhiding stories & update icons to sharp corners instead of rounded

* make story viewer context menu always dark theme to match design mocks

* dont fail dev builds when harmlessly double dismissing a context menu, which happens if backgrounding the app while the context menu is open

* update my story row icons to 16pt

* swipe to delete on my story rows

* Use themed icons. Get filled versions of various context menu icons from design
2022-09-26 17:10:10 -07:00
Nora Trapp
ecf98414ba Ensure notification observer is free'd 2022-09-26 14:58:51 -07:00
Sasha Weiss
ac97aeba92
Migrate to using ExpiredProfileKeyCredentials 2022-09-26 14:33:57 -07:00
Harry
86d4e97597
Hide tab bar when multiselecting chats 2022-09-26 14:21:31 -07:00
Max Radermacher
cc0e45c895 Set a per-test timeout of 60 seconds on CI 2022-09-26 14:19:43 -07:00
Nora Trapp
bcbaa8dd45 Don't read or write dbPath in debug dbPaypload 2022-09-26 14:13:06 -07:00
Nora Trapp
dd654a71e1 Remove stale strings 2022-09-26 14:07:40 -07:00
Nora Trapp
7eaeab8b3b "Bump build to 5.56.0.9." (Internal) 2022-09-26 13:56:39 -07:00
Nora Trapp
5e277b6eb4 Reduce logging 2022-09-26 13:48:00 -07:00
Nora Trapp
c829176b2c Actually, don't show connected status on the settings screen 2022-09-26 13:48:00 -07:00
Nora Trapp
f8949d93cd Show connected status on proxy settings 2022-09-26 13:48:00 -07:00
Nora Trapp
110aa9ab6b Move proxy settings to advanced privacy settings 2022-09-26 13:48:00 -07:00
Nora Trapp
323bbb5a4b Add some doc comments and make restart clearer 2022-09-26 13:48:00 -07:00
Nora Trapp
9d021f50fe Allow specifying a port for a proxy to connect to 2022-09-26 13:48:00 -07:00
Nora Trapp
fb31679cc7 Validate proxy address and that we can connect to it 2022-09-26 13:48:00 -07:00
Nora Trapp
f06d5f629a Wait for proxy to be ready before fetching messages in NSE 2022-09-26 13:48:00 -07:00
Evan Hahn
7a357a9cd3 Harden isValidProxyLink against strange URLs 2022-09-26 13:48:00 -07:00
Nora Trapp
e05a19d962 Handle backgrounding in relay server 2022-09-26 13:48:00 -07:00
Nora Trapp
a0970db6fa Allow configuring proxy in onboarding 2022-09-26 13:48:00 -07:00
Nora Trapp
8d1e038611 Fix bug with link previews 2022-09-26 13:48:00 -07:00
Nora Trapp
e5e9e544b3 Add UI for configuring proxy connection 2022-09-26 13:48:00 -07:00
Nora Trapp
286a930a79 Add support the Signal TLS Proxy 2022-09-26 13:48:00 -07:00
Max Radermacher
fa5960d4ef Don’t resolve SPM dependencies in CI 2022-09-26 12:43:01 -07:00
Harry
f65493ae7c
Fix InteractiveBottomSheetController on old devices/iOS versions
* fix InteractiveBottomSheet controller

* Remove outside styled bottom sheet handle as per design request

* allow shrinking the bottom sheet after maximizing, as per design request

* tweak animation values per design request

* nits
2022-09-26 12:20:51 -07:00
Max Radermacher
084a2b2274 Fix crash when toggling censorship circumvention
Changing the setting updates whether or not it’s enabled, which resulted
in a lock being re-entrantly acquired to check the current value.
2022-09-26 11:40:38 -07:00
Max Radermacher
85d8749048 Don’t check isNSE in LocalDevice.memoryUsageString
This can get called asynchronously during tests, and that can lead to
flakiness if we’re between two tests. There doesn’t seem to be a
compelling reason to only distinguish critical errors from warnings in
the NSE, so distinguish the two types everywhere.
2022-09-26 11:39:29 -07:00