Ban only for 60 seconds if unbanning is planned.
This commit is contained in:
parent
df12ea836b
commit
7bf14a2405
@ -7462,7 +7462,7 @@ void ContactsManager::restrict_channel_participant(ChannelId channel_id, DialogI
|
||||
});
|
||||
|
||||
promise = std::move(on_result_promise);
|
||||
status = DialogParticipantStatus::Banned(0);
|
||||
status = DialogParticipantStatus::Banned(G()->unix_time() + 60);
|
||||
}
|
||||
|
||||
if (participant_dialog_id.get_type() == DialogType::User) {
|
||||
|
Loading…
Reference in New Issue
Block a user