Commit Graph

1004 Commits

Author SHA1 Message Date
Nora Trapp
2a80d51188 Fix home view dates 2021-11-23 17:44:55 -08: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
Matthew Chen
5d780d1589 Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
Matthew Chen
21a8175795 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
93ba483ec5 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
b5ed609b42 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
498ffd22f2 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
a50b328efd Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
c416609108 Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
Matthew Chen
7d3b249845 Respond to CR. 2021-10-08 10:41:58 -03:00
Matthew Chen
78760da3d7 Log intent avatar behavior. 2021-10-08 10:41:11 -03:00
Matthew Chen
d7a4154c52 Disable notification intent avatars in NSE. 2021-10-08 10:41:11 -03:00
Michelle Linington
417c135fc9 Lint 2021-10-04 09:53:36 -03:00
Michelle Linington
ccf9383533 Improvements to database swap flow
Added a bunch of comments clarifying the database swap requirements.
Also, removed the baseDir parameter from GRDBDatabaseStorageAdapter.
2021-10-04 09:53:36 -03:00
Michelle Linington
fdc983519a Dynaically update database location at runtime
Fixes an issue where users were no longer receiving messages after
restoration. During restoration, the restoring device copies the
transferred database files to a special "hotswap" directory since we
don't want to overwrite our currently in-use database. Once finished, it
re-opens the database pointing to our hotswap directory. It would then
move the hotswap database to its primary location on the next app
launch.

The problem here is our extensions don't know how to read the hotswap
directory. Even if we added that capability, it's going to be tricky to
coordinate which database they read and when as the main app shuffles
files around.

This fix adjusts our restoration flow. Instead of having a special
"primary" and "hotswap" directory that we need to fix up on the next
launch, we instead record a UserDefaults entry that points to our
current database directory.

Once transfer has completed, the main app only needs to update the
current database directory in UserDefaults. No post-launch swapping
needs to occur.

Extensions will listen for updates to this database location by
registering KVO on NSUserDefaults.

This change also adjusts the restoration flow to break it up into
discrete stages. The motivation here is we need to make sure that a
partial restoration doesn't put the extensions in an inconsistent state.
2021-10-04 09:53:35 -03:00
Michelle Linington
a452ed3061 Wait for RingRTC before we finish handling VoIP push 2021-09-24 18:36:35 -07:00
Matthew Chen
692c637e80 Handle certain call messages sync. 2021-09-22 12:11:09 -07:00
Michelle Linington
0a69803b96 Restore NSE+main call message handoff 2021-09-22 11:23:14 -07:00
Michelle Linington
48435eb05d NSE should bail whenever it wakes the main app
We've observed races between the NSE+app handoff that can cause a
message to be decrypted twice. This works around this by quitting the
NSE if we decide to wake the main app. This isn't a good fix, but it
should address these out-of-sync session issues for now.
2021-09-21 18:44:00 -07:00
Matthew Chen
1fa8fef610 Streamline websocket requests. 2021-09-09 14:41:38 -03:00
Nora Trapp
0ab3b63016 Log message send benchmarks in production 2021-09-08 21:41:13 -03:00
Matthew Chen
f29922b9af Refine message send milestones. 2021-09-08 21:41:13 -03:00
Matthew Chen
5de4cb26c5 Refine message send bench milestones. 2021-09-08 21:41:13 -03:00
Matthew Chen
5e7636ec62 Add metrics around rendering message sends. 2021-09-08 21:41:13 -03:00
Matthew Chen
ed82d2b74a Update l10n strings. 2021-09-08 15:08:20 -03:00
Matthew Chen
7ae7510c47 Improve perf of CVC date math. 2021-09-08 15:04:26 -03:00
Nora Trapp
2814ab7629 Convert to new Promise library 2021-09-03 11:41:34 -07:00
Matthew Chen
c1a8005a74 Never emit invalid e164 in storage service contact records; be robust to invalid e164 incoming protos. 2021-09-01 16:33:16 -03:00
Matthew Chen
2005be536b Update date header and message footer date formatting. 2021-09-01 09:34:30 -03:00
Matthew Chen
9fd3b274e7 Respond to CR. 2021-08-30 17:15:56 -03:00
Matthew Chen
ca3f83ba98 Fix crash when scanning QR codes. 2021-08-30 17:15:55 -03:00
Eugene Bistolas
77854791ec iOS 15: Notifications generated via NSE show failover images, notifications fail to post 2021-08-30 07:07:04 -10:00
Matthew Chen
0957a5df49 Merge branch 'release/5.19.0' 2021-08-27 22:15:56 -03:00
Michelle Linington
8de3b76ee9 There are two types of File Not Found errors we can ignore 2021-08-27 14:26:10 -07:00
Nora Trapp
15cb0a5730 Add benchmarks around various message sending milestones 2021-08-27 12:55:57 -07:00
Eugene Bistolas
de67f4cede Update NSE avatar size, add more logging 2021-08-26 09:47:12 -10:00
Eugene Bistolas
e1c43e3583 Additional logging for prod NSE avatar generation 2021-08-25 14:24:19 -10:00
Matthew Chen
617a8b3acd Fix message forwarding issues. 2021-08-25 11:04:13 -03:00
Matthew Chen
5348c1a8c7 Clean up remote config and feature flags. 2021-08-24 20:39:26 -03:00
Matthew Chen
de7b0e0a21 Disable file logging in tests. 2021-08-24 18:32:23 -03:00