Commit Graph

25 Commits

Author SHA1 Message Date
Martin Böttcher
8f9be31ba3 replaced NSLocalizedStringFromAppBundle with OWSLocalizedString 2022-03-08 10:17:25 +01:00
Martin Böttcher
c0adfbfb32 NSLocalizedString is replaced by NSLocalizedStringFromAppBundle (reading strings from the bundle of the main app) for all source files called by an app extension and the localizable files are removed for the app extension targets. 2022-03-07 13:29:06 +01:00
Jordan Rose
058a0213b7 Check whether you're blocked in a thread without a write transaction
In most cases when working with a ConversationItem we already have a
write transaction, but sometimes we don't. In this case, we know you
can only be blocked in a conversation if there's history in it (at
least as far as the local device knows), and so we can ignore any
threads that don't exist.
2022-02-18 14:00:27 -08:00
Michelle Linington
91aaffe16b Lint 2022-01-31 11:00:13 -08:00
Michelle Linington
06a83d065c Improves performance of launch jobs
Randall hit an issue where his device would take a few seconds to start
up. His logs indicate that his device is spending time running
LaunchJobs.

The first change here is to make sure we explicitly set the launch job
work at an ultra-high priority. This is okay, since we don't actually
present UI until after we finish these jobs. Running this work at
UserInteractive is appropriate since it quite literally prevents the
user from interacting with the app. There's also no other time-sensitive
UI work we need to be doing (like running animations) that we could be
contending with.

The second change is to add a bit more logging that allows us to monitor
the amount of work these jobs are doing. This will allow us to see if
these jobs are performing an excessive amount of work.

Finally, I moved these LaunchJobs to Swift. Mostly because the ObjC
implementations were block based. The additional code was going to
indent things further and our linter aggressiely indents blocks to begin
with. Moving this to Swift is much more readable.
2022-01-31 11:00:13 -08:00
Matthew Chen
b9b66646ff Add SignalUI framework target. 2021-10-19 09:39:52 -03:00
Matthew Chen
8bc8a6b637 Design feedback around message forwarding flow. 2021-09-08 09:59:41 -03:00
Nora Trapp
2814ab7629 Convert to new Promise library 2021-09-03 11:41:34 -07:00
Matthew Chen
ef898bdc06 Rework conversation picker. 2021-08-24 09:41:00 -03:00
Matthew Chen
f8edb47a4b Rework conversation picker. 2021-08-24 09:41:00 -03:00
Matthew Chen
207f646209 Refine message forwarding flow. 2021-08-19 17:07:15 -03:00
Matthew Chen
445145a29a Allow user to add a text message to forwarded messages. 2021-08-19 16:58:02 -03:00
Matthew Chen
ae0b4d59a2 Modify forward flow multi-forward. 2021-08-19 16:57:01 -03:00
Matthew Chen
fcdca12cf5 Deprecate REST, Part 1
* Port socket manager to Swift.
* Clean up HTTP request success/failure state & errors.
* Rework network manager.
* Rework HTTP errors.
* Rework errors "properties": isRetryable, etc.
* Fix test breakage.
2021-08-18 14:25:36 -03:00
Nora Trapp
1cbe9c3ee7 PR Feedback 2021-08-16 13:28:08 -07:00
Nora Trapp
65ff51acb4 Send all messages via MessageSenderJobQueue 2021-08-16 13:27:43 -07:00
Michelle Linington
2385fffebd IOS-1617: Crash when forwarding message with mention
In some of our forwarding controllers, we compute
attachmentApprovalMentionableAddresses on the fly by opening a read
transaction and fetching the group membership. This leads to a
re-enterant database transaction.

Instead, on an update to the selected thread list, we'll populate our
candidate addresses. That way the cached candidate list can be accessed
without a separate transaction.
2021-07-29 15:04:04 -07:00
Matthew Chen
03acf2ffdd Remove uiRead(). 2021-07-02 22:04:58 -03:00
Nora Trapp
0032f0bc7a Fix attachment progress for parallel uploads 2021-04-13 08:50:57 -07:00
Matthew Chen
d0cbf8cfd0 Rework dependency access. 2021-03-25 09:24:27 -03:00
Nora Trapp
dac30cf4db Don't store group threads in memory when sharing 2021-02-05 11:22:15 -08:00
Nora Trapp
7230dabbc8 Add support for sharing suggestions 2021-01-21 20:00:29 -08:00
Nora Trapp
c073d8e204 Speed up presentation of conversation picker, eliminate 'loading' state 2021-01-21 20:00:29 -08:00
Nora Trapp
92f3f89e1d PR Feedback 2021-01-12 15:33:54 -08:00
Nora Trapp
08baf57151 Allow sharing to multiple threads 2021-01-12 15:33:54 -08:00