Ban only for 60 seconds if unbanning is planned.

This commit is contained in:
levlam 2021-06-23 15:40:24 +03:00
parent df12ea836b
commit 7bf14a2405

View File

@ -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) {