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

Show premium stickers lock icon.

This commit is contained in:
John Preston
2022-05-20 18:57:01 +04:00
parent 5cd065ef6b
commit 853cafe195
19 changed files with 137 additions and 41 deletions

View File

@@ -404,7 +404,7 @@ void SendFilesBox::openDialogToAddFileToAlbum() {
return true;
};
const auto callback = [=](FileDialog::OpenResult &&result) {
const auto premium = _controller->session().user()->isPremium();
const auto premium = _controller->session().premium();
FileDialogCallback(
std::move(result),
checkResult,
@@ -575,7 +575,7 @@ void SendFilesBox::pushBlock(int from, int till) {
return true;
};
const auto callback = [=](FileDialog::OpenResult &&result) {
const auto premium = _controller->session().user()->isPremium();
const auto premium = _controller->session().premium();
FileDialogCallback(
std::move(result),
checkResult,
@@ -773,7 +773,7 @@ bool SendFilesBox::canAddFiles(not_null<const QMimeData*> data) const {
}
bool SendFilesBox::addFiles(not_null<const QMimeData*> data) {
const auto premium = _controller->session().user()->isPremium();
const auto premium = _controller->session().premium();
auto list = [&] {
const auto urls = data->hasUrls() ? data->urls() : QList<QUrl>();
auto result = CanAddUrls(urls)