Commit Graph

11796 Commits

Author SHA1 Message Date
Max Radermacher
7c59666e98
Extract common notification logic into method
Co-authored-by: Harry <109690906+harry-signal@users.noreply.github.com>
2024-08-30 16:20:07 -05:00
Ehren Kret
5d3ca7fb3c convert OWSProfileManager from objc to swift 2024-08-30 15:14:30 -05:00
Harry
c3a22d16ca
Scroll to the right place when returning to the chat list view 2024-08-30 12:18:38 -05:00
Harry
e6c2a07276
Stop rogue cv cell rotation animation by setting speed to 0 2024-08-30 11:45:57 -04:00
Ehren Kret
372db4eba4 cleanup biometry type related code 2024-08-29 15:33:58 -05:00
Max Radermacher
929d9eeaef
Remove deprecated VoIP token logic 2024-08-29 15:27:52 -05:00
Adam Sharp
88cd4361f0 Fix app icon chooser not loading icons on iOS 18 2024-08-29 16:00:38 -04:00
Harry
1210f747fd
Fix icon tint colors throughout the app 2024-08-29 12:54:19 -07:00
Max Radermacher
99ff1a6858
Swiftify OWSRequestFactory 2024-08-28 16:05:58 -05:00
Ehren Kret
edefa9a440 migrate OWSFakeProfileManager from objc to swift 2024-08-28 15:10:10 -05:00
Ehren Kret
91ed508ed7 convert DataSource types from objc to swift 2024-08-28 10:56:41 -05:00
Harry
906759521a
Consolidate + clean up ChatColorSettingStore 2024-08-27 16:03:32 -07:00
Harry
096aa72133
Consolidate + clean up WallpaperStore 2024-08-27 15:57:10 -07:00
Harry
4ccfb958f6
Disable ai writing tools on all text fields in the app 2024-08-27 09:53:07 -07:00
Sasha Weiss
a1f7e4c1b1
Migrate TSOutgoingMessageRecipientState off of Mantle 2024-08-23 16:17:26 -07:00
Max Radermacher
527280f78f
Use RemoteConfig as an instance type 2024-08-23 14:59:44 -05:00
Harry
6fe99bd69b
Add support for versioned DM expire timer updates 2024-08-22 14:02:03 -07:00
Harry
db47898775
Remove v2 attachment read/write feature flags 2024-08-22 08:49:46 -07:00
Harry
555e24e65a
Add break glass for TSMessage.TSAttachment migration in prod 2024-08-21 09:20:54 -07:00
Max Radermacher
07baa170f7
Remove “collection” concept from database types 2024-08-20 18:22:00 -05:00
Harry
4eecfbf552
Remove internal-only toggle to enable v2 attachment migration 2024-08-20 15:08:47 -07:00
Adam Sharp
1a8c9fb5c6
Fix iOS 18 crash on launch due to offscreen rendering
Creating a UIImageView outside a view hierarchy now crashes on iOS 18. We can
avoid this offscreen rendering technique by removing UIImage.asTintedImage(),
configuring the tint colour and template rendering on the UIImage directly, and
rendering with UIGraphicsImageRenderer instead of lower-level Core Graphics
APIs.
2024-08-20 10:47:28 -04:00
Adam Sharp
0bbdac36c2
Use exhaustive switch statements when checking contacts authorization 2024-08-19 14:19:00 -04:00
Sasha Weiss
9690fd8ed8
Add "message request accepted" info message 2024-08-16 15:29:22 -07:00
Adam Sharp
7f5ed5d9c5
Fix row animations being visible behind chat list footer 2024-08-16 12:30:23 -04:00
Adam Sharp
3e5cee2ea0
Maintain section titles when unread filter is active
Previously, section titles were enabled dynamically based on whether both the
pinned & unpinned sections had chats in them. This meant that if the unread
filter was active, section titles might disappear, making it unclear whether
the chat is pinned or not.

Section titles are now always turned on when there is at least one pinned chat,
and continue to be displayed when the unread filter is active.
2024-08-14 17:03:18 -04:00
Ehren Kret
cbd5d860bc networking code cleanup and improvements 2024-08-14 15:30:39 -05:00
Harry
c3fb18bf78
Stop incremental migrator when backgrounding app 2024-08-14 11:58:18 -07:00
Sasha Weiss
5b35301892
Enable the Backup comparator for chat update tests 2024-08-13 15:52:25 -07:00
Adam Sharp
032256c18a Fix incorrect selection in chat list after tapping notification 2024-08-13 16:22:30 -04:00
Adam Sharp
b65258eeaa
Fix chat deselect animation intermittently breaking
Something about calling UITableView.deselectRow(at:) in the transition
coordinator completion block was causing the deselect animation to
intermittently just fail and pop to the deselected state. By actually animating
alongside the transition, we can reliably animate the deselection, and also
animate it interactively.
2024-08-13 12:30:15 -04:00
Harry
5442495395
Quick hacky fix for media gallery not scrolling to bottom on appear 2024-08-09 11:10:54 -07:00
Adam Sharp
e29ebf8d69 Fix last selected chat staying in chat list after closing 2024-08-08 18:14:25 -04:00
Elaine
884e74c889
Use smoother, interruptible animation on bottom sheets 2024-08-08 16:09:58 -06:00
Adam Sharp
fe0fdfe39a
Fix unread filter button being in the wrong state 2024-08-07 20:59:48 -04:00
Sasha Weiss
921bdf6c24
Add support for incoming message edits in Backups 2024-08-07 16:16:20 -07:00
Sasha Weiss
6c44bf955e
Fixes for restoring a Group from Backups 2024-08-07 14:57:02 -07:00
Adam Sharp
ba3098d18c Save selected unread filter to KeyValueStore 2024-08-07 17:52:49 -04:00
Ehren Kret
99cb4b5ebe remove toE164 method from PhoneNumber 2024-08-07 16:16:02 -05:00
Ehren Kret
fc350cb88a convert PhoneNumber to swift 2024-08-07 16:16:02 -05:00
Adam Sharp
1ad2f51b5f Animate between compact & empty states of unread filter 2024-08-06 19:47:53 -04:00
Adam Sharp
9caaa0d592 Add an expanded empty state to unread filter footer 2024-08-06 13:53:16 -04:00
Sasha Weiss
78ae578aa0
Use the withDefaults pattern for TSOutgoingMessageBuilder 2024-08-06 10:22:07 -07:00
Sasha Weiss
3cdf735b40
Pare down TSInteraction initializers 2024-08-06 10:06:20 -07:00
Harry
96913ad197
Don't immediately reschedule attachment migration after error 2024-08-06 08:59:04 -07:00
Adam Sharp
ca212c5532
Fix incorrect section indices in chat list
If a new section happened to be inserted at the beginning of the chat list, all
the pinned & unpinned chat sections can have their section indices changed.
This was *almost* handled correctly, except when a chat is changing in the same
transaction as a section is being inserted or removed.

The fix is to dynamically compute the section index from either the new or old
CLVRenderState, depending on the table view change operation being animated.
2024-08-06 11:23:31 -04:00
Adam Sharp
e67d70a523
Always allow animated changes when clearing unread filter
Even if there are currently no visible rows, or no rows have changes, clearing
the unread filter should still be an animated transition.
2024-08-06 11:01:11 -04:00
Adam Sharp
6e8bc8875d Rename ChatListButtonCell to ChatListFilterFooterCell 2024-08-06 10:43:19 -04:00
Adam Sharp
d8d7d4292e Fix "Filter by Unread" not working when split view is expanded 2024-08-05 11:38:10 -04:00
Ehren Kret
8db47c5f62 inline Cryptography.generateRandomBytes 2024-08-01 15:33:26 -05:00