2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Add a confirmation when blocking a user.

This commit is contained in:
John Preston
2019-07-15 15:47:40 +02:00
parent 2351865961
commit ffba901620
6 changed files with 22 additions and 14 deletions

View File

@@ -619,8 +619,11 @@ void ActionsFiller::addBlockAction(not_null<UserData*> user) {
if (user->botInfo) {
Ui::showPeerHistory(user, ShowAtUnreadMsgId);
}
} else {
} else if (user->isBot()) {
user->session().api().blockUser(user);
} else {
window->show(
Box(Window::PeerMenuBlockUserBox, window, user, false));
}
};
AddActionButton(