fix disappearing message settings subtitle copy

pull/731/head
Ryan ZHAO 2 months ago
parent 3899cdd389
commit d63f3a8bee

@ -161,6 +161,7 @@
7BFD1A8A2745C4F000FB91B9 /* Permissions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BFD1A892745C4F000FB91B9 /* Permissions.swift */; };
7BFD1A8C2747150E00FB91B9 /* TurnServerInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BFD1A8B2747150E00FB91B9 /* TurnServerInfo.swift */; };
7BFD1A972747689000FB91B9 /* Session-Turn-Server in Resources */ = {isa = PBXBuildFile; fileRef = 7BFD1A962747689000FB91B9 /* Session-Turn-Server */; };
9422EE2B2B8C3A97004C740D /* String+Utilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9422EE2A2B8C3A97004C740D /* String+Utilities.swift */; };
943C6D822B75E061004ACE64 /* Message+DisappearingMessages.swift in Sources */ = {isa = PBXBuildFile; fileRef = 943C6D812B75E061004ACE64 /* Message+DisappearingMessages.swift */; };
9593A1E796C9E6BE2352EA6F /* Pods_GlobalDependencies_FrameworkAndExtensionDependencies_SessionSnodeKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F8B0BA5257C58DC6FF797278 /* Pods_GlobalDependencies_FrameworkAndExtensionDependencies_SessionSnodeKit.framework */; };
99978E3F7A80275823CA9014 /* Pods_GlobalDependencies_FrameworkAndExtensionDependencies_SessionNotificationServiceExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29E827FDF6C1032BB985740C /* Pods_GlobalDependencies_FrameworkAndExtensionDependencies_SessionNotificationServiceExtension.framework */; };
@ -1308,6 +1309,7 @@
8E946CB54A221018E23599DE /* Pods-GlobalDependencies-FrameworkAndExtensionDependencies-ExtendedDependencies-SessionUtilitiesKit.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GlobalDependencies-FrameworkAndExtensionDependencies-ExtendedDependencies-SessionUtilitiesKit.debug.xcconfig"; path = "Target Support Files/Pods-GlobalDependencies-FrameworkAndExtensionDependencies-ExtendedDependencies-SessionUtilitiesKit/Pods-GlobalDependencies-FrameworkAndExtensionDependencies-ExtendedDependencies-SessionUtilitiesKit.debug.xcconfig"; sourceTree = "<group>"; };
92E8569C96285EE3CDB5960D /* Pods_GlobalDependencies_FrameworkAndExtensionDependencies_ExtendedDependencies_SignalUtilitiesKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GlobalDependencies_FrameworkAndExtensionDependencies_ExtendedDependencies_SignalUtilitiesKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
93359C81CF2660040B7CD106 /* Pods_GlobalDependencies_FrameworkAndExtensionDependencies_ExtendedDependencies_SessionUtilitiesKit_SessionUtilitiesKitTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GlobalDependencies_FrameworkAndExtensionDependencies_ExtendedDependencies_SessionUtilitiesKit_SessionUtilitiesKitTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9422EE2A2B8C3A97004C740D /* String+Utilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+Utilities.swift"; sourceTree = "<group>"; };
943C6D812B75E061004ACE64 /* Message+DisappearingMessages.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Message+DisappearingMessages.swift"; sourceTree = "<group>"; };
A11CD70C17FA230600A2D1B1 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
A163E8AA16F3F6A90094D68B /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
@ -2980,6 +2982,7 @@
C33100272559000A00070591 /* UIView+Utilities.swift */,
FD71161F28D97ABC00B47552 /* UIImage+Tinting.swift */,
FDBB25E62988BBBD00F1508E /* UIContextualAction+Theming.swift */,
9422EE2A2B8C3A97004C740D /* String+Utilities.swift */,
);
path = Utilities;
sourceTree = "<group>";
@ -5674,6 +5677,7 @@
FD37E9D528A1FCE8003AE748 /* Theme+OceanLight.swift in Sources */,
FDF848F129406A30007DCAE5 /* Format.swift in Sources */,
FD37E9C828A1D73F003AE748 /* Theme+Colors.swift in Sources */,
9422EE2B2B8C3A97004C740D /* String+Utilities.swift in Sources */,
FD37EA0128A60473003AE748 /* UIKit+Theme.swift in Sources */,
FD37E9CF28A1EB1B003AE748 /* Theme.swift in Sources */,
C331FFB92558FA8D00070591 /* UIView+Constraints.swift in Sources */,

@ -88,7 +88,7 @@ class ThreadDisappearingMessagesSettingsViewModel: SessionTableViewModel, Naviga
let title: String = "DISAPPEARING_MESSAGES".localized()
lazy var subtitle: String? = {
guard Features.useNewDisappearingMessagesConfig else {
return (isNoteToSelf ? nil : "DISAPPERING_MESSAGES_SUBTITLE_CONTACTS".localized())
return (isNoteToSelf ? nil : "DISAPPERING_MESSAGES_SUBTITLE_LEGACY".localized())
}
if threadVariant == .contact && !isNoteToSelf {

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -782,7 +782,7 @@ Anhänge senden, sobald der Empfänger diese Nachrichtenanfrage angenommen hat";
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1051,3 +1051,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -1051,3 +1051,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -1056,3 +1056,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -781,7 +781,7 @@
"database_inaccessible_error" = "There is an issue opening the database. Please restart the app and try again.";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation */
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to everyone in this conversation.";
"DISAPPERING_MESSAGES_SUBTITLE_CONTACTS" = "This setting applies to messages you send in this conversation.";
/* A message indicating how the disappearing messages setting applies in a group conversation */
"DISAPPERING_MESSAGES_SUBTITLE_GROUPS" = "Messages disappear after they have been sent.";
@ -1050,3 +1050,6 @@ The point that a message will disappear in a disappearing message update message
/* The subtitle of delete action in long press menu screen indicating the time that a message will disappear */
"DISAPPEARING_MESSAGES_AUTO_DELETES_COUNT_DOWN" = "Auto-deletes in %@";
/* A message indicating how the disappearing messages setting applies in a one-to-one conversation for legacy mode */
"DISAPPERING_MESSAGES_SUBTITLE_LEGACY" = "This setting applies to everyone in this conversation.";

@ -6,6 +6,7 @@ import SessionMessagingKit
import SessionUtilitiesKit
final class SessionTableViewTitleView: UIView {
private static let maxWidth: CGFloat = UIScreen.main.bounds.width - 44 * 2 - 16 * 2
private var oldSize: CGSize = .zero
override var frame: CGRect {
@ -37,7 +38,10 @@ final class SessionTableViewTitleView: UIView {
let result: UILabel = UILabel()
result.font = .systemFont(ofSize: Values.miniFontSize)
result.themeTextColor = .textPrimary
result.lineBreakMode = .byTruncatingTail
result.lineBreakMode = .byWordWrapping
result.numberOfLines = 0
result.textAlignment = .center
result.set(.width, lessThanOrEqualTo: Self.maxWidth)
return result
}()
@ -49,6 +53,8 @@ final class SessionTableViewTitleView: UIView {
return result
}()
private lazy var subtitleLabelHeightConstraint: NSLayoutConstraint = subtitleLabel.set(.height, to: 0)
// MARK: - Initialization
@ -87,6 +93,12 @@ final class SessionTableViewTitleView: UIView {
)
)
self.subtitleLabel.text = subtitle
if let subtitle: String = subtitle {
subtitleLabelHeightConstraint.constant = subtitle.heightWithConstrainedWidth(width: Self.maxWidth, font: self.subtitleLabel.font)
self.subtitleLabel.text = subtitle
self.subtitleLabel.isHidden = false
} else {
self.subtitleLabel.isHidden = true
}
}
}

@ -0,0 +1,11 @@
// Copyright © 2024 Rangeproof Pty Ltd. All rights reserved.
import UIKit
extension String {
public func heightWithConstrainedWidth(width: CGFloat, font: UIFont) -> CGFloat {
let constraintRect = CGSize(width: width, height: .greatestFiniteMagnitude)
let boundingBox = self.boundingRect(with: constraintRect, options: [.usesLineFragmentOrigin, .usesFontLeading], attributes: [NSAttributedString.Key.font: font], context: nil)
return boundingBox.height
}
}
Loading…
Cancel
Save