@@ -69,6 +69,8 @@ extension ConversationVC:
6969 title: " modal_call_permission_request_title " . localized ( ) ,
7070 explanation: " modal_call_permission_request_explanation " . localized ( ) ,
7171 confirmTitle: " vc_settings_title " . localized ( ) ,
72+ confirmAccessibilityLabel: " Settings " ,
73+ cancelAccessibilityLabel: " Cancel " ,
7274 dismissOnConfirm: false // Custom dismissal logic
7375 ) { [ weak self] _ in
7476 self ? . dismiss ( animated: true ) {
@@ -135,6 +137,8 @@ extension ConversationVC:
135137 range: ( message as NSString ) . range ( of: self . viewModel. threadData. displayName)
136138 ) ,
137139 confirmTitle: " modal_blocked_button_title " . localized ( ) ,
140+ confirmAccessibilityLabel: " Confirm block " ,
141+ cancelAccessibilityLabel: " Cancel block " ,
138142 dismissOnConfirm: false // Custom dismissal logic
139143 ) { [ weak self] _ in
140144 self ? . viewModel. unblockContact ( )
@@ -405,7 +409,7 @@ extension ConversationVC:
405409 // flags appropriately
406410 let threadId : String = self . viewModel. threadData. threadId
407411 let oldThreadShouldBeVisible : Bool = ( self . viewModel. threadData. threadShouldBeVisible == true )
408- let sentTimestampMs : Int64 = Int64 ( floor ( ( Date ( ) . timeIntervalSince1970 * 1000 ) ) )
412+ let sentTimestampMs : Int64 = SnodeAPI . currentOffsetTimestampMs ( )
409413 let linkPreviewDraft : LinkPreviewDraft ? = snInputView. linkPreviewInfo? . draft
410414 let quoteModel : QuotedReplyModel ? = snInputView. quoteDraftInfo? . model
411415
@@ -530,7 +534,7 @@ extension ConversationVC:
530534 // flags appropriately
531535 let threadId : String = self . viewModel. threadData. threadId
532536 let oldThreadShouldBeVisible : Bool = ( self . viewModel. threadData. threadShouldBeVisible == true )
533- let sentTimestampMs : Int64 = Int64 ( floor ( ( Date ( ) . timeIntervalSince1970 * 1000 ) ) )
537+ let sentTimestampMs : Int64 = SnodeAPI . currentOffsetTimestampMs ( )
534538
535539 // If this was a message request then approve it
536540 approveMessageRequestIfNeeded (
@@ -636,7 +640,7 @@ extension ConversationVC:
636640 threadVariant: threadVariant,
637641 threadIsMessageRequest: threadIsMessageRequest,
638642 direction: . outgoing,
639- timestampMs: Int64 ( floor ( Date ( ) . timeIntervalSince1970 * 1000 ) )
643+ timestampMs: SnodeAPI . currentOffsetTimestampMs ( )
640644 )
641645
642646 if needsToStartTypingIndicator {
@@ -854,6 +858,8 @@ extension ConversationVC:
854858 range: ( message as NSString ) . range ( of: cellViewModel. authorName)
855859 ) ,
856860 confirmTitle: " modal_download_button_title " . localized ( ) ,
861+ confirmAccessibilityLabel: " Download media " ,
862+ cancelAccessibilityLabel: " Don't download media " ,
857863 dismissOnConfirm: false // Custom dismissal logic
858864 ) { [ weak self] _ in
859865 self ? . viewModel. trustContact ( )
@@ -1213,7 +1219,7 @@ extension ConversationVC:
12131219 guard !threadIsMessageRequest else { return }
12141220
12151221 // Perform local rate limiting (don't allow more than 20 reactions within 60 seconds)
1216- let sentTimestamp : Int64 = Int64 ( floor ( Date ( ) . timeIntervalSince1970 * 1000 ) )
1222+ let sentTimestamp : Int64 = SnodeAPI . currentOffsetTimestampMs ( )
12171223 let recentReactionTimestamps : [ Int64 ] = General . cache. wrappedValue. recentReactionTimestamps
12181224
12191225 guard
@@ -2038,7 +2044,7 @@ extension ConversationVC:
20382044
20392045 // Create URL
20402046 let directory : String = OWSTemporaryDirectory ( )
2041- let fileName : String = " \( Int64 ( floor ( Date ( ) . timeIntervalSince1970 * 1000 ) ) ) .m4a "
2047+ let fileName : String = " \( SnodeAPI . currentOffsetTimestampMs ( ) ) .m4a "
20422048 let url : URL = URL ( fileURLWithPath: directory) . appendingPathComponent ( fileName)
20432049
20442050 // Set up audio session
@@ -2279,7 +2285,7 @@ extension ConversationVC {
22792285 for: self . viewModel. threadData. threadId,
22802286 threadVariant: self . viewModel. threadData. threadVariant,
22812287 isNewThread: false ,
2282- timestampMs: Int64 ( floor ( Date ( ) . timeIntervalSince1970 * 1000 ) )
2288+ timestampMs: SnodeAPI . currentOffsetTimestampMs ( )
22832289 )
22842290 }
22852291
0 commit comments