mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Enable data extraction notifications
This commit is contained in:
parent
fb8bf6cbd2
commit
2c589a6935
|
@ -705,27 +705,21 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc
|
||||||
|
|
||||||
// MARK: Data Extraction Notifications
|
// MARK: Data Extraction Notifications
|
||||||
@objc func sendScreenshotNotificationIfNeeded() {
|
@objc func sendScreenshotNotificationIfNeeded() {
|
||||||
// Disabled until other platforms implement it as well
|
|
||||||
/*
|
|
||||||
guard thread is TSContactThread else { return }
|
guard thread is TSContactThread else { return }
|
||||||
let message = DataExtractionNotification()
|
let message = DataExtractionNotification()
|
||||||
message.kind = .screenshot
|
message.kind = .screenshot
|
||||||
Storage.write { transaction in
|
Storage.write { transaction in
|
||||||
MessageSender.send(message, in: self.thread, using: transaction)
|
MessageSender.send(message, in: self.thread, using: transaction)
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendMediaSavedNotificationIfNeeded(for viewItem: ConversationViewItem) {
|
func sendMediaSavedNotificationIfNeeded(for viewItem: ConversationViewItem) {
|
||||||
// Disabled until other platforms implement it as well
|
|
||||||
/*
|
|
||||||
guard thread is TSContactThread, viewItem.interaction.interactionType() == .incomingMessage else { return }
|
guard thread is TSContactThread, viewItem.interaction.interactionType() == .incomingMessage else { return }
|
||||||
let message = DataExtractionNotification()
|
let message = DataExtractionNotification()
|
||||||
message.kind = .mediaSaved(timestamp: viewItem.interaction.timestamp)
|
message.kind = .mediaSaved(timestamp: viewItem.interaction.timestamp)
|
||||||
Storage.write { transaction in
|
Storage.write { transaction in
|
||||||
MessageSender.send(message, in: self.thread, using: transaction)
|
MessageSender.send(message, in: self.thread, using: transaction)
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Requesting Permission
|
// MARK: Requesting Permission
|
||||||
|
|
Loading…
Reference in a new issue