Commit Graph

1042 Commits

Author SHA1 Message Date
Evan Hahn
9e59ca31b5 Remove redundant DateFormatter locales
The [`locale` property of `DateFormatter`][0] defaults to `.current`, so
we don't need to specify it.

Tested this in English and Spanish in a simulator. Date formats appeared
localized.

[0]: https://developer.apple.com/documentation/foundation/dateformatter/1411973-locale
2022-04-19 09:27:54 -05:00
Michelle Linington
c21b7dc6ee Update min version. Last completed version stores a 3-version 2022-04-14 18:04:16 -07:00
Michelle Linington
460bce289e PR Feedback: Use existing lastLaunchVersion key 2022-04-14 18:04:16 -07:00
Michelle Linington
488259d5ef Lint 2022-04-14 16:25:33 -07:00
Michelle Linington
c19fa8b950 Improve log cleanup on launch 2022-04-14 16:23:21 -07:00
Michelle Linington
f222c2f3e2 Lint 2022-04-11 16:30:55 -07:00
Michelle Linington
5b7a06b642 Adjust logging behavior 2022-04-11 16:30:55 -07:00
Jordan Rose
0a982ebc83 Include timestamp in missed call notifications
...if the call was more than five minutes ago. This should help in two
scenarios:

- you've been offline for a while, and you see "missed call" but don't
  know when they tried to call

- you hit that NSE bug where a ring gets processed hours or even days
  later, possibly when a second call arrives
2022-04-05 10:48:05 -07:00
Nora Trapp
30dae7fb15 Format all times for stories relatively 2022-03-31 00:40:47 -07:00
Nora Trapp
9494498d70 Add support for sending group replies to stories 2022-03-31 00:34:32 -07:00
Martin Böttcher
462177a0ce
improve cold start app start times (#4079)
deferred some initial load for faster app start
2022-03-29 08:24:55 +02:00
Nora Trapp
00dedae3e0 Fix 1:1 sharing suggestions 2022-03-19 11:41:36 -07:00
Nora Trapp
3ce037b57b Prevent story attachments from getting inadvertently pruned by orphan data cleaner 2022-03-17 14:30:21 -07:00
Nora Trapp
d87fa8c16c Add new fonts for text stories 2022-03-17 14:30:19 -07:00
Martin Böttcher
000c4c282b Merge branch 'master' into martin/IOS-2234 2022-03-17 09:09:37 +01:00
Nora Trapp
059dd9a542 Convert TSMention to SDSCodableModel 2022-03-16 18:07:38 -07:00
Nora Trapp
91777d5b9f Convert OWSReaction to SDSCodableModel 2022-03-16 18:06:24 -07:00
Nora Trapp
99350fb38c Rename HomeViewController to ChatListViewController 2022-03-16 17:51:51 -07:00
Martin Böttcher
eedfd70f3e merged master and pod files 2022-03-15 12:49:11 +01:00
Jordan Rose
e8021225a3 Do not load avatar image data in the NSE
Not only should we not build avatars, but even loading the image data
costs us our limited memory space, especially when it's a system
contact avatar whose size we have no control over. Instead, record the
cache key for that avatar in the database.

(Unfortunately, we can't jump to the cache like this in the main app,
because then we'd have no way to check if an avatar has *changed*,
particularly for system contacts.)
2022-03-10 10:32:46 -08:00
Jordan Rose
d7ed13ec63 Fix extension log file deletion
The expression for the relative cutoff timestamp was
`-self.maximumNumberOfLogFiles * kDayInterval`, but
'maximumNumberOfLogFiles' is an unsigned integer, so this turned into
"some day very far in the future" and immediately deleted all
extension logs. The new expression, `self.maximumNumberOfLogFiles *
-kDayInterval` works because 'kDayInterval' is an NSTimeInterval, a
floating-point value.
2022-03-08 16:24:29 -08:00
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
Michelle Linington
259cf01376 Lint 2022-03-04 14:16:29 -08:00
Michelle Linington
62e804da5f Plumbing 2022-03-04 14:16:29 -08:00
Jordan Rose
c7197c8517 Clear old extension logs when rotating the main app logs
Otherwise, logs from infrequently launched extensions (like the share
extension) can stick around much longer than we intend.
2022-03-04 13:57:29 -08:00
Martin Böttcher
fa5dbfa234
improve ContactsManagerCache performance (#4026)
* added details for Signalyzer; improved ContactsManagerCache
* some minor runtime improvements
* systems contacts are written and read in big chunks to improve overall performance
* use of __file__, __function__ and __line__ when monitoring objective C methods
* minor changes
* minor changed based on review comments
2022-03-03 09:30:31 +01:00
Nora Trapp
b57a5bedd7 Populate INSendMessageIntentDonationMetadata 2022-03-01 10:22:28 -08:00
Jordan Rose
a302e7cfbc If a call message gets stuck, make sure it's treated as old later
Call messages delivered to the NSE have to be handled in the main app,
so they're put in a synced key-value store and the app is notified.
Rings are processed oldest-to-newest in case you get two calls in
succession before the main app awakes. However, if this processing is
interrupted, the store won't get cleared, and the app may try to
process the *old* ring when it's woken up by a *new* ring. This would
*still* be correct (e.g. for showing missed call notifications) except
that the "age" of a ring message is calculated purely on when it makes
it to the user's device, since it was assumed that it would be
processed promptly. Since this is not necessarily the case in these
error scenarios, this commit adds a second timestamp to track the skew
between when the NSE enqueues the call message and when the main app
processes it.
2022-02-18 16:01:09 -08:00
Nora Trapp
0948ba837b Cache built avatars to disk for NSE 2022-02-14 11:59:13 -08:00
Nora Trapp
b2c0e975b6 Store group avatars on disk 2022-02-09 11:56:03 -08:00
Nora Trapp
a2f51dc4a3 Cleanup old feature flags 2022-01-24 10:53:55 -08:00
Martin Böttcher
f141adfe3b added animations and changed multi selection handling when in archive mode 2021-12-27 11:09:00 +01:00
Jordan Rose
38fbb3bbc2 Copy in AFNetworking's query string encoding implementation
Matthew previously stripped this down in our fork of AFNetworking; at
this point there's no benefit to it living in a separate repo and
separate target. With this we can remove the AFNetworking target
completely.
2021-12-17 14:52:59 -08:00
Martin Böttcher
7ebf46b3e8 fixed some lint issues and modified some UI details due to updated and specified requirements 2021-12-02 20:36:23 +01:00
Martin Böttcher
a3876232d5 PAPERCUT-475: added swipe action to HomeView allowing muting/unmuting thread 2021-12-02 20:36:23 +01:00
Matthew Chen
9a16be2c98 Merge branch 'release/5.26.2'
# Conflicts:
#	Signal/Signal-Info.plist
#	SignalNSE/Info.plist
#	SignalShareExtension/Info.plist
2021-11-24 18:41:49 -03:00
Nora Trapp
2a80d51188 Fix home view dates 2021-11-23 17:44:55 -08:00
Matthew Chen
18bc6e411e Tidy up debug logs. 2021-11-23 09:42:20 -03:00
Michelle Linington
5a645228b0 Fix issue where avatars flicker sporadically
Our AvatarBuilder caches were cleared in their entirety any time a
profile changes. If a profile update raced with a avatar fetch in
ConversationAvatarView, they'd blink briefly while the cached items were
removed.

This change ensures that we're only clearing out avatars that are
associated with an updated profile.
2021-11-22 17:01:07 -08:00
Michelle Linington
0b9c6727a6 Fixes various small bugs
- Clear out avatar cache on local profile changes too
- ConversationAvatarView properly handles local profile updates
- Fix some tiny UI bugs in group calls
2021-11-10 21:27:17 -08:00
Michelle Linington
9f53832e14 Remove usage of ConversationAvatarView 2021-11-09 14:25:55 -08:00
Michelle Linington
bd51ca690a Replace AvatarImageView2 with ConversationAvatarView2
Adoption of ConversationAvatarView2 in many key locations. This isn't
exhaustive, but it's mostly there.

Some work left to be done around ConversationAvatarView2 data source
tweaks.
2021-11-09 14:25:55 -08:00
Michelle Linington
9ecda7377c Badge asset management 2021-11-09 14:25:42 -08:00
Nora Trapp
a26a332ec4 Fix no content message notifications 2021-11-08 17:16:53 -08:00
Matthew Chen
9211ac8fa3 Move MobileCoin SDK to SignalUI. 2021-11-02 14:26:03 -03:00
Matthew Chen
eab1f82123 Move MobileCoin SDK to SignalUI. 2021-11-02 14:26:03 -03:00
Matthew Chen
ac83129534 Move MobileCoin SDK to SignalUI. 2021-11-02 14:26:02 -03:00
Matthew Chen
093e814b79 Reduce statics. 2021-11-02 10:36:25 -03:00
Nora Trapp
ac5aafaea9 Remove support for Xcode 12 2021-11-01 13:26:46 -07:00