mirror of https://github.com/procxx/kepka.git
Removing scheduling messages until online for those who hide their online.
This commit is contained in:
parent
1bcde1b55c
commit
8298caddc3
|
@ -563,7 +563,10 @@ TimeId DefaultScheduleTime() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CanScheduleUntilOnline(not_null<PeerData*> peer) {
|
bool CanScheduleUntilOnline(not_null<PeerData*> peer) {
|
||||||
return !peer->isSelf() && peer->isUser() && !peer->asUser()->isBot();
|
return !peer->isSelf()
|
||||||
|
&& peer->isUser()
|
||||||
|
&& !peer->asUser()->isBot()
|
||||||
|
&& (peer->asUser()->onlineTill > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScheduleBox(
|
void ScheduleBox(
|
||||||
|
|
Loading…
Reference in New Issue