mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Unblock bots without restarting from Settings.
This commit is contained in:
@@ -286,9 +286,7 @@ bool BlockedBoxController::prependRow(not_null<UserData*> user) {
|
||||
std::unique_ptr<PeerListRow> BlockedBoxController::createRow(
|
||||
not_null<UserData*> user) const {
|
||||
auto row = std::make_unique<PeerListRowWithLink>(user);
|
||||
row->setActionLink((user->isBot() && !user->isSupport())
|
||||
? tr::lng_blocked_list_restart(tr::now)
|
||||
: tr::lng_blocked_list_unblock(tr::now));
|
||||
row->setActionLink(tr::lng_blocked_list_unblock(tr::now));
|
||||
const auto status = [&] {
|
||||
if (!user->phone().isEmpty()) {
|
||||
return App::formatPhone(user->phone());
|
||||
|
Reference in New Issue
Block a user