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

Add ability to completely delete legacy group.

This commit is contained in:
John Preston
2021-01-21 08:20:29 +04:00
parent 19455d44db
commit 1774b21e88
4 changed files with 14 additions and 5 deletions

View File

@@ -601,9 +601,7 @@ void DeleteMessagesBox::prepare() {
deleteText = _wipeHistoryPeer->isUser()
? tr::lng_box_delete()
: tr::lng_box_leave();
deleteStyle = &(peer->isChannel()
? st::defaultBoxButton
: st::attentionBoxButton);
deleteStyle = &st::attentionBoxButton;
}
if (auto revoke = revokeText(peer)) {
_revoke.create(this, revoke->checkbox, false, st::defaultBoxCheckbox);
@@ -702,6 +700,8 @@ auto DeleteMessagesBox::revokeText(not_null<PeerData*> peer) const
tr::now,
lt_user,
user->firstName);
} else if (_wipeHistoryJustClear) {
return std::nullopt;
} else {
result.checkbox = tr::lng_delete_for_everyone_check(tr::now);
}

View File

@@ -748,7 +748,7 @@ void ManageInviteLinksBox(
const auto deleteAll = Ui::CreateChild<Ui::LinkButton>(
container.get(),
tr::lng_group_invite_context_delete_all(tr::now),
st::boxLinkButton);
st::defaultLinkButton);
rpl::combine(
header->topValue(),
container->widthValue()