Commit Graph

29608 Commits

Author SHA1 Message Date
Nora Trapp
7aa3bcca67 "Bump build to 6.1.0.4." (nightly-10-29-2022) 2022-10-29 04:01:18 -07:00
Max Radermacher
085c258956 [Payments] Remove space at top of settings screen 2022-10-28 16:20:40 -07:00
Evan Hahn
d96d7d6160 DonationUtilities doesn't need to be an NSObject
This change should have no user impact.
2022-10-28 15:51:26 -07:00
Evan Hahn
f07735f706 Precommit script should fail if lint fails
This change should have no user impact.

I thought I did this in 1b00741b6d7dbfbe48e5b1c46f856902d0e6d02a...this
*actually* does it.
2022-10-28 15:51:02 -07:00
Evan Hahn
b7cb7eb403
Test TSContactThread's canSendChatMessagesToThread() 2022-10-28 16:16:00 -05:00
Ehren Kret
e1ce2b7174 fix: file case in project file doesn't match git 2022-10-28 15:48:12 -05:00
Ehren Kret
38af2a8a65 fix missed CGFloat for thumbnail 2022-10-28 15:46:32 -05:00
Ehren Kret
ab61bbc3a6
cleanup more xcode warnings 2022-10-28 13:54:31 -05:00
Ehren Kret
8e44265440 cleanup more unsigned v signed warnings 2022-10-28 13:53:08 -05:00
Jim Gustafson
f08bec6705
Update to RingRTC v2.21.3 2022-10-28 11:22:17 -07:00
Max Radermacher
361634ea74
Remove db read when computing addableMembers 2022-10-28 10:38:18 -07:00
Harry
5865a0a478
Translate OWSViewController to swift 2022-10-28 10:24:55 -07:00
Ehren Kret
9a1e269e91 remove several signed conversion warnings 2022-10-28 11:56:12 -05:00
Ehren Kret
fee73a4cd8 provide output path to script build phase 2022-10-28 11:55:23 -05:00
Sasha Weiss
d793cda28e
Remove imageSize from MegaphoneView 2022-10-28 09:52:20 -07:00
Sasha Weiss
6526a8a164
Remove all references to local 'subscriptionMegaphone' 2022-10-28 09:47:58 -07:00
Nora Trapp
8dbb6dc4ab "Bump build to 6.1.0.3." (nightly-10-28-2022) 2022-10-28 04:00:14 -07:00
Max Radermacher
0b906a45aa "Bump build to 6.1.0.2." (Internal) 2022-10-27 20:52:35 -07:00
Harry Sanabria
ef18f08181 Fix conversation title layout 2022-10-27 20:51:00 -07:00
Max Radermacher
f2afe8d45b Skip already-cached values in BulkProfileFetch
If we queue N UUIDs [1, 2, ..., N], we’ll send a request to fetch all of
them. If we queue those same N UUIDs again, we’ll stop processing after
the first one, without sending any fetch request.

We’ll start processing again the next time `process()` is called. This
could happen in response to network availability changing, or it could
happen in response to scheduling the N+1’th UUID. (Though, we won’t
necessarily fetch the N+1’th UUID in this case -- we’ll fetch the 2nd.)

These cached results also expire after a few minutes or a few hours,
depending on the most recent result. Therefore, this fetcher may behave
somewhat erratically, where it fetches profiles, stops for a few
minutes, then starts fetching profiles again.
2022-10-27 19:55:44 -07:00
Max Radermacher
39d85c255a
Persist updates as part of fetch profile promise
As far back as 823927685d, the profile
updates were asynchronous. At that point it time, it didn’t matter
because there wasn’t a completion block; callers couldn’t know when the
updates *should* be complete, so it didn’t matter when they finished.

However, in 856fef7664 a Promise result
was added, presumably to allow callers to know when it was safe to check
GV2 capabilities. Now, a cursory reading of the API would suggest that
all changes were persisted once the Promise was resolved.

This can result in bugs, such as [this example][0], where we fetch the
profile and then check a capability in the database. Even though it’ll
*probably* be the case, there’s no guarantee that the updated profile
will be persisted when we try to fetch the latest capability.

[0]: 465d00664b/Signal/src/ViewControllers/AppSettings/Donations/BadgeGiftingConfirmationViewController.swift (L69-L88)
2022-10-27 19:54:24 -07:00
Max Radermacher
26cd80c911 Remove unused string/data comparison methods 2022-10-27 18:46:22 -05:00
Nora Trapp
9fc9accb59 "Bump build to 6.1.0.1." (nightly-10-27-2022) 2022-10-27 04:00:12 -07:00
Sasha Weiss
4ecb3e4bf2
Wire up the remote megaphone model to a view 2022-10-26 17:56:14 -07:00
Jordan Rose
e02855349c Don't trap in debug builds on oversized downloads 2022-10-26 17:23:44 -07:00
Sasha Weiss
44a7b9a3c3
Parse and check country-code CSV from remote megaphones 2022-10-26 16:03:52 -07:00
Evan Hahn
cd7635cda4 Update currency label on donation screens
"Set currency" is now just "Currency".
2022-10-26 17:05:09 -05:00
Evan Hahn
f180185dd1 Update copy on donation thanks sheet 2022-10-26 17:05:03 -05:00
Evan Hahn
4675434c6c Add FiatMoney type
This change should have no user impact.

We commonly pair a currency, like USD, and an amount, like 1.23. This
adds the `FiatMoney` struct. It's a simple struct with two fields.

After adding it, I tried to use it everywhere. (It's possible I missed a
spot.)

I think this is a useful change on its own, but it'll be nice for an
upcoming change, too.

See also: [Android's equivalent class][0].

[0]: cb65347bb3/core-util/src/main/java/org/signal/core/util/money/FiatMoney.java (L1)
2022-10-26 17:04:51 -05:00
Jordan Rose
1ad673fa52 Calls: if the user denies mic/video access, treat that as muting
This keeps the local state and the UI in sync with the actual
behavior.
2022-10-26 15:04:32 -07:00
Sasha Weiss
1cb90e245f
Fetch and persist remote megaphones 2022-10-26 15:03:08 -07:00
Sasha Weiss
bfbdf5b78d
Move system contact names to ContactRecord 2022-10-26 15:00:36 -07:00
Max Radermacher
5eb5f0b610 "Bump build to 6.1.0.0." (Internal) 2022-10-26 14:24:05 -07:00
Max Radermacher
1b5691e019 Update translations 2022-10-26 14:23:20 -07:00
Max Radermacher
08cd436420 Update release notes 2022-10-26 14:19:36 -07:00
Max Radermacher
b7a8f2a49a "Bump build to 6.0.0.0." (Internal) 2022-10-26 14:18:12 -07:00
Evan Hahn
c8bc2cde2e Improve name of donation settings view controller
This change should have no user impact.

`DonationViewController` is now `DonationSettingsViewController`.

I think this is a better name on its own, but it'll seem even better
after upcoming change.
2022-10-26 14:12:48 -05:00
Nora Trapp
d63f24c6d2
fixing missing batch update of identity keys
* Ensure batch update of identity keys when sending text stories

* Ensure batch update of identity keys when forwarding messages
2022-10-26 08:30:52 -07:00
Nora Trapp
8c72372681 "Bump build to 5.60.0.4." (nightly-10-26-2022) 2022-10-26 04:01:08 -07:00
Evan Hahn
0d0c895e1b Remove unnecessary members of currency picker button
This change should have no user impact.
2022-10-25 19:38:41 -05:00
Harry
55b34eff11
Pre-release story fixes
* fix story views + replies sheet header update when swiping

* fix my story privacy show more off-by-one

* Disable story sends when hiding a group story. Unhide when enabling story sends to a group story.

* More consistent story tab bar badge offset
2022-10-25 16:19:36 -07:00
Harry
1516e71b48
Story search scrolling fixes
* Push up stories list content above keyboard when present

* Initially scroll search bar off screen if stories content doesn't fit without scrolling
2022-10-25 16:00:24 -07:00
Adam Mork
2dd98c37b3
[Payments] Show alert if client is outdated
Co-authored-by: Phil Larson <phil.larson@icloud.com>
Co-authored-by: Max Radermacher <max@signal.org>
2022-10-25 15:43:43 -07:00
Harry
075133be72
Observe story viewed ring changes in ConversationAvatarView
* Observe story viewed ring changes in ConversationAvatarView itself

* Manage ConversationAvatarView's story observation based on the context

* remove story state from thread view model, now unused

* pr feedback renames
2022-10-25 12:57:52 -07:00
Igor Solomennikov
bf580958b8
Allow users to swipe between camera and text story composer. 2022-10-25 12:03:59 -07:00
Igor Solomennikov
ad4c9fa57f
Two fixes for text story composer.
* Preserve selection in text story composer after changing font size.

Fixes an issue where input cursor would jump to the end when adding/deleting
text in the beginning or middle of the text and those edits caused font size
to increase / decrease.

That unwanted behavior was caused by replacing the entire `UITextView.attributedText`.

* Ensure entire text story draft has same font after undo / redo operation.

UITextView's undo manager preserves attributes of text being cut / pasted, which
might cause text view to contain fragments with different font.

The solution is to detect when there's more than one font used in UITextView
and re-apply attributes to the entire text if when that happens.
2022-10-25 11:54:16 -07:00
Harry
2da55a03b1
Fix outdated latestUnexpiredTimestamp when reading StoryContextAssociatedData from disk 2022-10-25 11:47:59 -07:00
Jordan Rose
73b2570e4b Un-nest immediately-invoked block 2022-10-25 10:40:55 -07:00
Jordan Rose
3cec45a5e8 Remove redundant applicationWillTerminate notification
AppDelegate already does the exact same thing.
2022-10-25 10:35:08 -07:00
Nora Trapp
bd7d76f3b7 "Bump build to 5.60.0.3." (nightly-10-25-2022) 2022-10-25 04:01:07 -07:00