|
|
|
@ -657,21 +657,27 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc
|
|
|
|
|
|
|
|
|
|
// MARK: Data Extraction Notifications
|
|
|
|
|
@objc func sendScreenshotNotificationIfNeeded() {
|
|
|
|
|
// Disabled until other platforms implement it as well
|
|
|
|
|
/*
|
|
|
|
|
guard thread is TSContactThread else { return }
|
|
|
|
|
let message = DataExtractionNotification()
|
|
|
|
|
message.kind = .screenshot
|
|
|
|
|
Storage.write { transaction in
|
|
|
|
|
MessageSender.send(message, in: self.thread, using: transaction)
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func sendMediaSavedNotificationIfNeeded(with timestamp: UInt64) {
|
|
|
|
|
// Disabled until other platforms implement it as well
|
|
|
|
|
/*
|
|
|
|
|
guard thread is TSContactThread else { return }
|
|
|
|
|
let message = DataExtractionNotification()
|
|
|
|
|
message.kind = .mediaSaved(timestamp: timestamp)
|
|
|
|
|
Storage.write { transaction in
|
|
|
|
|
MessageSender.send(message, in: self.thread, using: transaction)
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MARK: Requesting Permission
|
|
|
|
|