Commit Graph

5 Commits

Author SHA1 Message Date
Harry
4ed83814e3
Use millisecond durations, not string values, for group dm updates 2024-01-03 06:31:45 -08:00
Max Radermacher
56154557dd
Add isStructurallyValidE164
This merges & replaces `resemblesE164:` and `isValidE164`.

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
2023-02-13 13:45:00 -08:00
Evan Hahn
5c55c848d1 Add card validation code
This code is currently dormant, but will be useful in an upcoming
change.

Check the tests to see how this works.
2022-11-11 14:24:41 -06:00
Evan Hahn
ec78cc3a0a
Hide Apple Pay UI when the server disallows your region
_I recommend reviewing this with whitespace changes disabled._

The server's `global.donations.apayDisabledRegions` is a list of regions
(phone number prefixes) where Apple Pay is disallowed. This respects
that.
2022-11-10 16:19:47 -06:00
Evan Hahn
74d8d25a04 Move SignalServiceKit string tests to correct file
_This change should have no user impact._

We add some stuff to `String` in `SignalServiceKit`.

Before, we tested this in the `SignalTests` target. Now, it's in the
`SignalServiceKitTests` target.

All I did was move some lines. I didn't change the tests at all.

I think this is a good change on its own but it may be useful in an
upcoming change.
2022-11-07 14:31:15 -08:00