From c933ea1734373e63c741a67bbce4829a2ce6f1d1 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 23 Oct 2023 11:49:31 +1100 Subject: [PATCH] add comments --- .../Settings/ThreadDisappearingMessagesSettingsViewModel.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Session/Conversations/Settings/ThreadDisappearingMessagesSettingsViewModel.swift b/Session/Conversations/Settings/ThreadDisappearingMessagesSettingsViewModel.swift index 17eac41e6..28e531158 100644 --- a/Session/Conversations/Settings/ThreadDisappearingMessagesSettingsViewModel.swift +++ b/Session/Conversations/Settings/ThreadDisappearingMessagesSettingsViewModel.swift @@ -64,6 +64,9 @@ class ThreadDisappearingMessagesSettingsViewModel: SessionTableViewModel, Naviga var title: String? { switch self { case .type: return "DISAPPERING_MESSAGES_TYPE_TITLE".localized() + // We need to keep these although the titles of them are the same + // because we need them to trigger timer section to refresh when + // the user selects different disappearing messages type case .timerLegacy, .timerDisappearAfterSend, .timerDisappearAfterRead: return "DISAPPERING_MESSAGES_TIMER_TITLE".localized() case .noteToSelf: return nil case .group: return nil