diff --git a/Telegram/SourceFiles/history/view/history_view_schedule_box.cpp b/Telegram/SourceFiles/history/view/history_view_schedule_box.cpp index 36fb6d0b6..d543948b7 100644 --- a/Telegram/SourceFiles/history/view/history_view_schedule_box.cpp +++ b/Telegram/SourceFiles/history/view/history_view_schedule_box.cpp @@ -563,7 +563,10 @@ TimeId DefaultScheduleTime() { } bool CanScheduleUntilOnline(not_null peer) { - return !peer->isSelf() && peer->isUser() && !peer->asUser()->isBot(); + return !peer->isSelf() + && peer->isUser() + && !peer->asUser()->isBot() + && (peer->asUser()->onlineTill > 0); } void ScheduleBox(