Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

align options ephemeral options to android/desktop for consistency #2001

Merged
merged 2 commits into from Nov 27, 2023

Conversation

r10s
Copy link
Member

@r10s r10s commented Nov 26, 2023

closes #2000

static let fiveMinutes = 5 * 60
static let thirtyMinutes = 30 * 6
static let thirtyMinutes = 30 * 60
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thirtyMinutes was wrongly defined before, however also not used (neither by ephemeral nor by mute)

@@ -32,7 +32,20 @@ class EphemeralMessagesViewController: UITableViewController {
self.dcContext = dcContext
self.chatId = chatId
super.init(style: .grouped)
self.currentIndex = self.options.index(of: dcContext.getChatEphemeralTimer(chatId: chatId)) ?? 0

// select option close to the timespan (that may no be available as an option eg. in case option have changed)
Copy link
Member Author

@r10s r10s Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the same what we're doing on android, and it seems to be good enough, esp. as this is only for cornercases as removed options - and most chat members do not tweak this option anyways

@r10s r10s added the bug label Nov 26, 2023
@r10s r10s requested a review from Simon-Laux November 26, 2023 17:53
@r10s r10s marked this pull request as ready for review November 26, 2023 17:53
@r10s r10s merged commit 35acdd7 into main Nov 27, 2023
1 check passed
@r10s r10s deleted the fix-ephemeral-options branch November 27, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use "5 weeks" as maximum for "disappearing messages"
2 participants