mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Removed the 'screenshot notifications' setting
This commit is contained in:
parent
3acec60f06
commit
42e82af8a2
28 changed files with 3 additions and 109 deletions
|
@ -199,7 +199,6 @@ public class ConversationViewModel: OWSAudioPlayerDelegate {
|
|||
}()
|
||||
)
|
||||
],
|
||||
joinSQL: MessageViewModel.optimisedJoinSQL,
|
||||
filterSQL: MessageViewModel.filterSQL(threadId: threadId),
|
||||
groupSQL: MessageViewModel.groupSQL,
|
||||
orderSQL: MessageViewModel.orderSQL,
|
||||
|
|
|
@ -136,16 +136,6 @@ public class HomeViewModel {
|
|||
|
||||
return SQL("LEFT JOIN \(ThreadTypingIndicator.self) ON \(typingIndicator[.threadId]) = \(thread[.id])")
|
||||
}()
|
||||
),
|
||||
PagedData.ObservedChanges(
|
||||
table: Setting.self,
|
||||
columns: [.value],
|
||||
joinToPagedType: {
|
||||
let setting: TypedTableAlias<Setting> = TypedTableAlias()
|
||||
let targetSetting: String = Setting.BoolKey.showScreenshotNotifications.rawValue
|
||||
|
||||
return SQL("LEFT JOIN \(Setting.self) ON \(setting[.key]) = \(targetSetting)")
|
||||
}()
|
||||
)
|
||||
],
|
||||
/// **Note:** This `optimisedJoinSQL` value includes the required minimum joins needed for the query but differs
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Bildschirmschutz";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Lesebestätigungen";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Lesebestätigungen";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Screen Security";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Read Receipts";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Read Receipts";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Protección de pantalla";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Notificaciones de lectura";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Notificaciones de lectura";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "امنیت صفحه";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "قفل Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = " برای باز کردن قفل Session به شناسه لمسی، شناسه صورت و یا رمز عبوری ضرورت است.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "اعلانات اسکرینشات.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "هنگامی که یک مخاطب از یک چت یک به یک اسکرین شات میگیرد، اعلان دریافت کنید.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "رسیدهای خواندن";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "رسیدهای خواندن";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "رسیدهای خواندن در چتهای یک به یک روان شود.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Näytön suojaus";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Lukukuittaukset";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Lukukuittaukset";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Sécurité de l’écran";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Accusés de lecture";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Accusés de lecture";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Screen Security";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Read Receipts";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Read Receipts";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Sigurnost zaslona";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Potvrda o čitanju";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Potvrda o čitanju";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Layar Aman";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Pesan terbaca diterima";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Pesan terbaca diterima";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Sicurezza schermo";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Ricevute di lettura";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Ricevute di lettura";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "スクリーン・セキュリティ";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "既読確認";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "既読確認";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Scherm beveiliging";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Leesbevestigingen";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Leesbevestigingen";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Ochrona ekranu";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Potwierdzenia odczytania";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Potwierdzenia odczytania";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Segurança de Tela";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Confirmações de Leitura";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Confirmações de Leitura";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Защита экрана";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Уведомления о прочтении";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Уведомления о прочтении";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "තිරයේ ආරක්ෂාව";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "කියවූ බවට ලදුපත්";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "කියවූ බවට ලදුපත්";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Zabezpečenie obrazovky";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Potvrdenia o prečítaní";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Potvrdenia o prečítaní";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Skärmsäkerhet";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Läskvittenser";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Läskvittenser";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "ความปลอดภัยหน้าจอ";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "แจ้งการอ่านข้อความ";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "แจ้งการอ่านข้อความ";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "Screen Security";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "Read Receipts";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "Read Receipts";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "螢幕顯示安全";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "已讀回條";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "已讀回條";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -485,8 +485,6 @@
|
|||
"PRIVACY_SECTION_SCREEN_SECURITY" = "屏幕安全";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_TITLE" = "Lock Session";
|
||||
"PRIVACY_SCREEN_SECURITY_LOCK_SESSION_DESCRIPTION" = "Require Touch ID, Face ID or your passcode to unlock Session.";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE" = "Screenshot Notifications";
|
||||
"PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION" = "Receive a notification when a contact takes a screenshot of a one-to-one chat.";
|
||||
"PRIVACY_SECTION_READ_RECEIPTS" = "已读回执";
|
||||
"PRIVACY_READ_RECEIPTS_TITLE" = "已读回执";
|
||||
"PRIVACY_READ_RECEIPTS_DESCRIPTION" = "Send read receipts in one-to-one chats.";
|
||||
|
|
|
@ -104,17 +104,6 @@ class PrivacySettingsViewModel: SessionTableViewModel<PrivacySettingsViewModel.N
|
|||
db[.isScreenLockEnabled] = !db[.isScreenLockEnabled]
|
||||
}
|
||||
}
|
||||
),
|
||||
SessionCell.Info(
|
||||
id: .screenshotNotifications,
|
||||
title: "PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_TITLE".localized(),
|
||||
subtitle: "PRIVACY_SCREEN_SECURITY_SCREENSHOT_NOTIFICATIONS_DESCRIPTION".localized(),
|
||||
rightAccessory: .toggle(.settingBool(key: .showScreenshotNotifications)),
|
||||
onTap: {
|
||||
Storage.shared.writeAsync { db in
|
||||
db[.showScreenshotNotifications] = !db[.showScreenshotNotifications]
|
||||
}
|
||||
}
|
||||
)
|
||||
]
|
||||
),
|
||||
|
|
|
@ -603,26 +603,10 @@ extension MessageViewModel {
|
|||
public extension MessageViewModel {
|
||||
static func filterSQL(threadId: String) -> SQL {
|
||||
let interaction: TypedTableAlias<Interaction> = TypedTableAlias()
|
||||
let setting: TypedTableAlias<Setting> = TypedTableAlias()
|
||||
|
||||
var targetValue: Bool = true
|
||||
let boolSettingLiteral: Data = Data(bytes: &targetValue, count: MemoryLayout.size(ofValue: targetValue))
|
||||
|
||||
return SQL("""
|
||||
\(interaction[.threadId]) = \(threadId) AND (
|
||||
\(SQL("\(interaction[.variant]) != \(Interaction.Variant.infoScreenshotNotification)")) OR
|
||||
\(SQL("IFNULL(\(setting[.value]), false) == \(boolSettingLiteral)"))
|
||||
)
|
||||
""")
|
||||
return SQL("\(interaction[.threadId]) = \(threadId)")
|
||||
}
|
||||
|
||||
static let optimisedJoinSQL: SQL = {
|
||||
let setting: TypedTableAlias<Setting> = TypedTableAlias()
|
||||
let targetSetting: String = Setting.BoolKey.showScreenshotNotifications.rawValue
|
||||
|
||||
return SQL("LEFT JOIN \(Setting.self) ON \(setting[.key]) = \(targetSetting)")
|
||||
}()
|
||||
|
||||
static let groupSQL: SQL = {
|
||||
let interaction: TypedTableAlias<Interaction> = TypedTableAlias()
|
||||
|
||||
|
|
|
@ -440,11 +440,6 @@ public extension SessionThreadViewModel {
|
|||
let attachment: TypedTableAlias<Attachment> = TypedTableAlias()
|
||||
let interactionAttachment: TypedTableAlias<InteractionAttachment> = TypedTableAlias()
|
||||
let profile: TypedTableAlias<Profile> = TypedTableAlias()
|
||||
let setting: TypedTableAlias<Setting> = TypedTableAlias()
|
||||
let targetSetting: String = Setting.BoolKey.showScreenshotNotifications.rawValue
|
||||
|
||||
var targetValue: Bool = true
|
||||
let boolSettingLiteral: Data = Data(bytes: &targetValue, count: MemoryLayout.size(ofValue: targetValue))
|
||||
|
||||
let interactionTimestampMsColumnLiteral: SQL = SQL(stringLiteral: Interaction.Columns.timestampMs.name)
|
||||
let interactionStateInteractionIdColumnLiteral: SQL = SQL(stringLiteral: RecipientState.Columns.interactionId.name)
|
||||
|
@ -532,12 +527,7 @@ public extension SessionThreadViewModel {
|
|||
SUM(\(interaction[.wasRead]) = false AND \(interaction[.hasMention]) = true) AS \(ViewModel.threadUnreadMentionCountKey)
|
||||
|
||||
FROM \(Interaction.self)
|
||||
LEFT JOIN \(Setting.self) ON \(setting[.key]) = \(targetSetting)
|
||||
WHERE
|
||||
\(SQL("\(interaction[.variant]) != \(Interaction.Variant.standardIncomingDeleted)")) AND (
|
||||
\(SQL("\(interaction[.variant]) != \(Interaction.Variant.infoScreenshotNotification)")) OR
|
||||
\(SQL("IFNULL(\(setting[.value]), false) == \(boolSettingLiteral)"))
|
||||
)
|
||||
WHERE \(SQL("\(interaction[.variant]) != \(Interaction.Variant.standardIncomingDeleted)"))
|
||||
GROUP BY \(interaction[.threadId])
|
||||
) AS \(Interaction.self) ON \(interaction[.threadId]) = \(thread[.id])
|
||||
|
||||
|
@ -636,11 +626,6 @@ public extension SessionThreadViewModel {
|
|||
let thread: TypedTableAlias<SessionThread> = TypedTableAlias()
|
||||
let contact: TypedTableAlias<Contact> = TypedTableAlias()
|
||||
let interaction: TypedTableAlias<Interaction> = TypedTableAlias()
|
||||
let setting: TypedTableAlias<Setting> = TypedTableAlias()
|
||||
let targetSetting: String = Setting.BoolKey.showScreenshotNotifications.rawValue
|
||||
|
||||
var targetValue: Bool = true
|
||||
let boolSettingLiteral: Data = Data(bytes: &targetValue, count: MemoryLayout.size(ofValue: targetValue))
|
||||
|
||||
let interactionTimestampMsColumnLiteral: SQL = SQL(stringLiteral: Interaction.Columns.timestampMs.name)
|
||||
|
||||
|
@ -651,12 +636,7 @@ public extension SessionThreadViewModel {
|
|||
\(interaction[.threadId]),
|
||||
MAX(\(interaction[.timestampMs])) AS \(interactionTimestampMsColumnLiteral)
|
||||
FROM \(Interaction.self)
|
||||
LEFT JOIN \(Setting.self) ON \(setting[.key]) = \(targetSetting)
|
||||
WHERE
|
||||
\(SQL("\(interaction[.variant]) != \(Interaction.Variant.standardIncomingDeleted)")) AND (
|
||||
\(SQL("\(interaction[.variant]) != \(Interaction.Variant.infoScreenshotNotification)")) OR
|
||||
\(SQL("IFNULL(\(setting[.value]), false) == \(boolSettingLiteral)"))
|
||||
)
|
||||
WHERE \(SQL("\(interaction[.variant]) != \(Interaction.Variant.standardIncomingDeleted)"))
|
||||
GROUP BY \(interaction[.threadId])
|
||||
) AS \(Interaction.self) ON \(interaction[.threadId]) = \(thread[.id])
|
||||
"""
|
||||
|
|
|
@ -57,10 +57,6 @@ public extension Setting.BoolKey {
|
|||
/// A flag indicating whether the app is ready for app extensions to run
|
||||
static let isReadyForAppExtensions: Setting.BoolKey = "isReadyForAppExtensions"
|
||||
|
||||
/// Controls whether the device should show screenshot notifications in one-to-one conversations (will always
|
||||
/// send screenshot notifications, this just controls whether they get filtered out or not)
|
||||
static let showScreenshotNotifications: Setting.BoolKey = "showScreenshotNotifications"
|
||||
|
||||
/// Controls whether concurrent audio messages should automatically be played after the one the user starts
|
||||
/// playing finishes
|
||||
static let shouldAutoPlayConsecutiveAudioMessages: Setting.BoolKey = "shouldAutoPlayConsecutiveAudioMessages"
|
||||
|
|
Loading…
Reference in a new issue