Feature: configurable default schedule time setting for messages#30718
Open
dazewell wants to merge 1 commit into
Open
Feature: configurable default schedule time setting for messages#30718dazewell wants to merge 1 commit into
dazewell wants to merge 1 commit into
Conversation
- Add defaultScheduleTime setting to Core::Settings (default: 600s/10min) - Add getter/setter methods with serialization support - Modify DefaultScheduleTime() to use user's configured setting - Add UI dropdown in Settings > Chat Settings > Messages section with calendar icon (menuIconSchedule) - Time options: 5min, 10min (default), 15min, 30min, 1h, 2h, 4h, 8h, 1day, 2days, 3days, 7days - Label shows '(default)' suffix for 10 minutes option in dropdown - Reactive UI updates immediately when value changes - Add lng_settings_default_schedule_time language key - Fix existing syntax error in BuildSupportSection (missing brace)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add configurable default schedule time setting
Motivation
Currently when user wants to schedule message, default time offset is always 10 minutes. This is not convenient when you need send multiple scheduled messages - for example, if you preparing story from vacation photos or making series of announcements for your channel.
Every time you need click through date picker and adjust time manually. If you want schedule 10 messages with 1 hour between each, you will do 10 times same clicks. This is very annoying and makes scheduled messages feature less useful for such scenarios.
What this PR does
This PR adds new setting in Settings → Chat Settings → Messages section that allows configure default time offset for scheduled messages.
Now user can:
Use cases
This feature will be useful for:
With this feature, if you set default to 2 hours, you can quickly schedule 10 messages - just open schedule dialog, click "Send", open next chat, schedule again, etc. Time will increment automatically by 2 hours each time. Much more faster workflow!
Testing
Tested scenarios: