Skip to content

Feature: add configurable default scheduled time option#366

Merged
risin42 merged 3 commits into
risin42:devfrom
dazewell:feature/configurable_schedule_time
May 23, 2026
Merged

Feature: add configurable default scheduled time option#366
risin42 merged 3 commits into
risin42:devfrom
dazewell:feature/configurable_schedule_time

Conversation

@dazewell
Copy link
Copy Markdown
Contributor

@dazewell dazewell commented May 23, 2026

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 all for some later time - for example, if you preparing a story or what's more important, if you need to reply to many messages (and thus need to leave the Scheduled Messages view) and don't want them to be sent until you're done and reviewed it.

Every time you need click through date picker and adjust time manually. This is very annoying and makes scheduled messages feature less useful for such scenarios.

What this PR does

This PR adds new setting in N-Settings → Chat → Chats section that allows configure default time offset for scheduled messages.

Now user can:

  • Choose preferred default time from dropdown (5 min, 10 min, 15 min, 30 min, 1h, 2h, 4h, 8h, 1 day, 2 days, 3 days, 7 days)
  • Setting saves globally and applied for all chats
  • When opening schedule dialog, time picker will automatically show current time + configured offset
  • No need anymore adjust time manually each time

Use cases

This feature will be useful for:

  • Content creators who need schedule multiple posts in different channels (for example, after 2 hours)
  • Users sending story-mode messages - when you want tell long story in several messages and don't want them to be sent too early, or just gather the full story, read it through, and then send all at once

Testing

Tested scenarios:

  • Change default time and schedule message - works correct
  • Restart application - setting persists
  • Schedule multiple messages with different default times
  • Settings UI updates immediately when changing value

Summary by CodeRabbit

  • New Features
    • Introduced configurable default delay for scheduled messages, allowing users to set and manage a preferred default delivery time without manual adjustment for each message.
    • Added interactive UI control with adjustable slider to customize the default schedule delay and automatically persist user preferences.

Review Change Stack

@dazewell dazewell force-pushed the feature/configurable_schedule_time branch from f6928e5 to 7a95298 Compare May 23, 2026 06:22
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 14b29d8a-a7b7-4f92-83d0-d8faafc56eb6

📥 Commits

Reviewing files that changed from the base of the PR and between 7715439 and 7a95298.

📒 Files selected for processing (5)
  • TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java
  • TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java
  • TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt
  • TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/ScheduleTimeShift.kt
  • TMessagesProj/src/main/res/values/strings_nax.xml

Comment thread TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java Outdated
Comment thread TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/ScheduleTimeShift.kt Outdated
Comment thread TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/ScheduleTimeShift.kt Outdated
Copy link
Copy Markdown
Owner

@risin42 risin42 left a comment

Choose a reason for hiding this comment

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

Let's make it better.

Comment thread TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/ScheduleTimeShift.kt Outdated
Comment thread TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/ScheduleTimeShift.kt Outdated
@risin42 risin42 merged commit 918dd4e into risin42:dev May 23, 2026
2 checks passed
Repository owner deleted a comment from coderabbitai Bot May 23, 2026
@dazewell
Copy link
Copy Markdown
Contributor Author

Let's make it better.

Oh jeeez, waaaay better now! Appreciate your help and such a fast turn-over!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants