Commit Graph

1130 Commits

Author SHA1 Message Date
Max Radermacher
ebc5e15b9e Improve code to fetch thread for a given message 2023-06-23 12:48:30 -05:00
Igor Solomennikov
52f0015dfe
New set of icons. 2023-06-22 17:38:01 -07:00
Harry
d7dd813a68
no choochoo 4 u 2023-06-22 15:56:44 -07:00
Harry
f728457039
Update build target to iOS 13.0 2023-06-08 16:21:20 -07:00
Igor Solomennikov
c457cefc94
Convert UIViewController+Permissions to Swift. 2023-06-07 11:36:46 -07:00
Max Radermacher
ca3b018734
Add & use DisappearingMessagesConfigurationStore 2023-06-05 11:00:38 -05:00
Igor Solomennikov
f65d8e267d
Remove ObjC cruft from some classes. 2023-06-02 21:36:36 -07:00
Igor Solomennikov
c0b01db156
Convert Environment from SignalMessaging to Swift as SMEnvironment. 2023-06-02 20:53:07 -07:00
Igor Solomennikov
0ed81d560a
Convert OWSPreferences in SignalMessaging to Swift as Preferences. 2023-06-01 11:29:08 -07:00
Igor Solomennikov
064346e45a
Convert OWSSounds to Swift. 2023-05-30 10:23:08 -07:00
Igor Solomennikov
ef5dc5c4fc
Convert ThreadUtil to Swift. 2023-05-30 09:45:08 -07:00
Igor Solomennikov
4bb09f8ed7
Convert DateUtil to Swift. 2023-05-30 09:37:36 -07:00
Max Radermacher
f9bc032c5b Don’t check for tooltip after every load 2023-05-24 09:53:46 -07:00
Harry
cc67fe55ad
SVR2 implementation part 1: local operations 2023-05-23 12:26:25 -07:00
Igor Solomennikov
7790837eb5
Remove unnecessary "@objc" in SignalMessaging. 2023-05-16 16:41:49 -07:00
Harry
4fdd5b712f
Migrate TSRequest to swift 2023-05-08 11:01:59 -07:00
Max Radermacher
4887120cb8
Move OWSOrphanDataCleaner out of SignalMessaging 2023-05-04 17:49:48 -07:00
Max Radermacher
57a556e87c Clean up incoming envelope validation 2023-05-04 15:59:24 -07:00
Max Radermacher
0def4f62f0
Swiftify some DebugLogger code 2023-05-02 16:41:46 -07:00
Igor Solomennikov
e9eefda2d9
Convert screen lock related classes to Swift.
Co-authored-by: Max Radermacher <max@signal.org>
2023-05-02 12:06:40 -07:00
Max Radermacher
2c4b87b491 Move sticker cleanup to OWSOrphanDataCleaner 2023-04-25 10:35:32 -07:00
Evan Hahn
e1dcf4f6a4
Remove unused AnySearcher class. 2023-04-24 15:50:50 -07:00
Max Radermacher
0199c3789e Don’t warn about missing orphaned paths 2023-04-24 10:41:56 -07:00
Harry
7daed0ae2f
typo fix
Co-authored-by: Utsav Dave <utsavdave1997@gmail.com>
2023-04-24 10:30:09 -07:00
Max Radermacher
c72400771a Fix typo when searching for contact sync jobs 2023-04-17 14:45:52 -07:00
Max Radermacher
92e170fe12
Swiftify SSKEnvironment 2023-04-14 10:58:21 -07:00
Max Radermacher
a8511014cb
Use LocalIdentifiers in Storage Service 2023-04-14 10:20:58 -07:00
Sasha Weiss
c9fbc9a9ee
Migrate SSKJobRecord and subclasses to SDSCodableModel using factory init 2023-04-13 10:57:48 -07:00
Max Radermacher
e5baf249e2 Be delicate with earpiece proximity 2023-04-13 10:40:02 -07:00
Max Radermacher
4891a4beea
Split AppSetup into discrete method calls 2023-04-12 18:18:25 -07:00
Sasha Weiss
b8d24d6ec3
Show 'Message Request' as notification body for message request threads 2023-04-07 12:43:00 -07:00
Evan Hahn
9e18a245df Swiftify AppVersion, stop storing properties
This commit:

- Converts `AppVersion` to Swift
- Creates `AppVersionForObjC` as a bridge
- Stops storing many properties; instead, pulls them off `UserDefaults`
  as needed
2023-04-05 16:02:58 -05:00
Evan Hahn
3804ed76a5
Move app version off Dependencies and NSObject
This change should have no user impact.

`appVersion` used to be a property of `Dependencies` and `NSObject`. It
just deferred to `AppVersion.shared()`.

This commit removes those properties and relies on `AppVersion.shared`
instead. Also, `AppVersion.shared` is now a getter, not a function.
2023-04-05 13:29:49 -07:00
Sasha Weiss
406d44d396
Move SDSCodableModel database methods to separate object 2023-04-03 15:21:07 -07:00
Igor Solomennikov
eed90ed89c
Fix some C warnings.
* A function declaration without a prototype is deprecated in all versions of C
* No previous prototype for function `xxx`.
2023-03-28 10:27:03 -07:00
Harry
a146e18aaf
Set up account state and exit registration
* Go to chat list view after registration

* sync system contacts during registration

* Use explicit local credentials for storage service operations during registration

* fix tests

* Quick hack to get through double pin confirmation

* Finishing touches

* lint

* fix build

* reload phone number discoverability after storage service sync

* fix tests again

* Take chat auth on account and contact record initializers

* Change around branches for clarity in OWSUserProfile

* pr comments

* Split ChatServiceAuth into the same and AuthedAccount

* fix tests

* merge woes
2023-03-09 21:54:51 -08:00
Max Radermacher
174ee9ae86 "Bump build to 6.17.0.0." (nightly-03-08-2023) 2023-03-08 16:12:45 -08:00
Max Radermacher
93d97da82b
Split “in progress” & “saved” voice message drafts 2023-03-08 15:31:56 -08:00
Evan Hahn
b733bffa2c
Wipe debug logs from very old versions 2023-03-01 17:00:58 -06:00
Evan Hahn
fb2a462f2d
Remove some DateUtil methods
This change should have no user impact.

I noticed that a few of these methods weren't used. Also, one of the
formatters was not used externally, so I removed it from the `.h`.
2023-02-28 19:35:56 -08:00
Harry
23368e413f
Only mark APNS tokens as , preventing rotation, for up to 60 days 2023-02-28 15:52:21 -08:00
Evan Hahn
41ff3c142b
Rewrite debug log scrubbing logic in Swift
Also introduces additional defense-in-depth improvements.
2023-02-28 15:55:00 -06:00
Max Radermacher
898fd2c4d5
Clean up queue names 2023-02-27 14:16:09 -08:00
Max Radermacher
fdbdc9716d Swiftify formatDuration(seconds:…) 2023-02-22 14:05:35 -08:00
Max Radermacher
0598c3f9b9
Clean up JobRecordFinder 2023-02-22 13:54:56 -08:00
Max Radermacher
59593c3c97
Add ServiceId & E164 types
* Use the new E164 type in a few places
* Use the new ServiceId type in a few places
2023-02-21 23:13:46 -08:00
Evan Hahn
96ef31f130
Add new (dormant) registration profile setup screen
Most notably, this required making a change to `AvatarBuilder` to let us
get a default avatar with no current user.
2023-02-17 11:39:19 -06:00
Max Radermacher
77977fb597 Add background tasks for orphan data cleaner 2023-02-15 09:49:17 -08:00
Harry
003cc19e62
Update SignalCoreKit. Use explicit DispatchQueue instead of relying on the implicit type on promise 'on' params
* Use explicit DispatchQueue instead of relying on the implicit type on promise 'on' params

* Update SignalCoreKit
2023-02-07 16:14:39 -08:00
Adam Mork
728862da6f
[Payments] Biometry Payments Lock
* payment lock

* add 30 day timeout to showing the payment lock suggestion

* fix linting

* update comment

* Payment Lock: Fix project file & submodules (#4878)

* revert ringrtc changes

* revert pods changes

* fix project file

* PR Comment suggestions and fixes

* PR suggestions

* revert screen lock to previous implementation

* rename OWSPaymentLock to OWSPaymentsLock (missing plural s), remove
super-class dependency. Make OWSPaymentsLock more "swifty".

* revert changes to call-site for OWSScreenLock

* update call-sites for OWSPaymentsLock

* forgot to add PaymentOnboarding class and localization comment improvements

* change function call-site

* Remove OWSLocalAuthentication from project

* remove OWSLocalAuth from project file

* make edge-case default more secure if storage not ready

* fix project file

* lint fix

* fix linting errors

* Revert compact format style for OWSLocalizedString

* fix localization call-sites to use literals, update localization file after autogen

* Add new Payments Lock Prompt view to be shown after activating payments. Factor out the BiometryType "current biometry" into its own class with helpers to easily getting the devices current setup.

* fix linting issues, sort project file, and autogen localizations

* require payments lock to look at the recovery phrase

* fix linting issue

* fix missing localizations (caused by dynamic creation in previous commit)

* use Pods commit from signal/main

* re-run linter on latest commits

* new header comments for new branch files

* update submodule commits

* Use existing secondsInDay constant kDayInterval, use weak self guard statement instead of optional self in escaping closure.

* Revert submodule changes

* Remove duplicate copyright headers

* Revert copyright header changes

* Restore some missing translations

* Add localization for unknown LocalAuthentication error/state.

* remove Pods changes

* linting

* use submodule commits from main

* subclass the old Objc OWSViewController super-class, should fix CICD

* change capitalized Passcode to lower-case in non-title situation.

* remove early exit guard from biometryType computed function. Reason being that the type can be gathered from a policy that evaluates to false. In a case where the user has a FaceID phone but its disabled, the messaging would be incorrect. removing the early exit evaluates the biometryType which apple provides even if the policy returns false.

* inline snooze date

* inject write transaction to some convenience methods to reduce database overhead when multiple calls need to happen at the same time.

* make combined set and snooze function, update combined call-site

* rename long function

* use false instead of sender.on to avoid sneaky view issues

* add tryToUnlockPromise function to clean up call sites

* change superclass, fix Promise statement

* call super class function

* remove objc

* add unlock failed action sheet helper class and put at all relevant call-sites, still need to test though.

* add unlock failed action sheet helper class and put at all relevant call-sites, still need to test though. linting

* project file changes for new file

* re-render payments lock toggle after failure to change setting.

re-render payments lock toggle after failure to change setting.

* move around action sheet call-site to account for an action sheet already being presented. remove unecc. return

* fix merge conflicts, linting

* re-gen strings file

---------

Co-authored-by: Max Radermacher <max@signal.org>
2023-02-03 12:56:54 -08:00