mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-24 22:44:42 +00:00
fix: make it build
This commit is contained in:
@@ -423,7 +423,6 @@ void forwardMessages(
|
||||
auto bundle = Ui::PrepareFilesBundle(
|
||||
std::move(groups),
|
||||
way,
|
||||
message.textWithTags,
|
||||
false);
|
||||
sendMedia(session, bundle, media, std::move(message), way.sendImagesAsPhotos());
|
||||
}
|
||||
|
||||
@@ -272,7 +272,14 @@ void sendDocumentSync(not_null<Main::Session*> session,
|
||||
crl::on_main([=, lst = std::move(group.list), caption = std::move(caption)]() mutable
|
||||
{
|
||||
auto size = lst.files.size();
|
||||
session->api().sendFiles(std::move(lst), type, std::move(caption), size > 1 ? groupId : nullptr, action);
|
||||
if (!lst.files.empty()) {
|
||||
lst.files.front().caption = std::move(caption);
|
||||
}
|
||||
session->api().sendFiles(
|
||||
std::move(lst),
|
||||
type,
|
||||
size > 1 ? groupId : nullptr,
|
||||
action);
|
||||
});
|
||||
|
||||
waitForMsgSync(session, action);
|
||||
|
||||
@@ -30,7 +30,8 @@ CallbackCancel TelegramTranslator::startTranslation(
|
||||
args.requestData.peer,
|
||||
args.requestData.idList,
|
||||
args.requestData.text,
|
||||
args.requestData.toLang
|
||||
args.requestData.toLang,
|
||||
MTP_string() // tone
|
||||
)).done([=](const MTPmessages_TranslatedText &result)
|
||||
{
|
||||
const auto &data = result.data();
|
||||
|
||||
@@ -63,8 +63,6 @@ exteraBadgeToast: Toast(defaultToast) {
|
||||
minWidth: 40px;
|
||||
maxWidth: 480px;
|
||||
padding: margins(54px, 13px, 19px, 12px);
|
||||
icon: icon {{ "ayu/extera_badge", toastFg }};
|
||||
iconPosition: point(13px, 13px);
|
||||
}
|
||||
|
||||
supportLogoSize: 96px;
|
||||
|
||||
@@ -539,6 +539,16 @@ void InnerWidget::elementShowPollResults(
|
||||
FullMsgId context) {
|
||||
}
|
||||
|
||||
void InnerWidget::elementShowAddPollOption(
|
||||
not_null<Element*> view,
|
||||
not_null<PollData*> poll,
|
||||
FullMsgId context,
|
||||
QRect optionRect) {
|
||||
}
|
||||
|
||||
void InnerWidget::elementSubmitAddPollOption(FullMsgId context) {
|
||||
}
|
||||
|
||||
void InnerWidget::elementOpenPhoto(
|
||||
not_null<PhotoData*> photo,
|
||||
FullMsgId context) {
|
||||
|
||||
@@ -99,6 +99,12 @@ public:
|
||||
void elementShowPollResults(
|
||||
not_null<PollData*> poll,
|
||||
FullMsgId context) override;
|
||||
void elementShowAddPollOption(
|
||||
not_null<HistoryView::Element*> view,
|
||||
not_null<PollData*> poll,
|
||||
FullMsgId context,
|
||||
QRect optionRect) override;
|
||||
void elementSubmitAddPollOption(FullMsgId context) override;
|
||||
void elementOpenPhoto(
|
||||
not_null<PhotoData*> photo,
|
||||
FullMsgId context) override;
|
||||
|
||||
@@ -290,12 +290,16 @@ void ColorsPalette::show(Type type) {
|
||||
return;
|
||||
}
|
||||
list.insert(list.begin(), scheme->accentColor);
|
||||
const auto &settings = AyuFeatures::MessageShot::isChoosingTheme() ? AyuFeatures::MessageShot::getSelectedColorFromDefault() : Core::App().settings();
|
||||
const auto color = settings.themesAccentColors().get(type);
|
||||
const auto current = (settings.systemAccentColorEnabled()
|
||||
? Window::Theme::SystemAccentColor()
|
||||
: std::optional<QColor>()).value_or(
|
||||
color.value_or(scheme->accentColor));
|
||||
const auto &settings = Core::App().settings();
|
||||
const auto messageShotSelected = AyuFeatures::MessageShot::isChoosingTheme()
|
||||
? AyuFeatures::MessageShot::getSelectedColorFromDefault()
|
||||
: std::optional<QColor>();
|
||||
const auto color = messageShotSelected.has_value()
|
||||
? messageShotSelected
|
||||
: (settings.systemAccentColorEnabled()
|
||||
? Window::Theme::SystemAccentColor()
|
||||
: settings.themesAccentColors().get(type));
|
||||
const auto current = color.value_or(scheme->accentColor);
|
||||
const auto i = ranges::find(list, current);
|
||||
if (i == end(list)) {
|
||||
list.back() = current;
|
||||
|
||||
+1
-1
Submodule Telegram/codegen updated: 1c919609d4...17a10c1b72
+1
-1
Submodule Telegram/lib_ui updated: 864dd38ffd...df52e7459b
@@ -33,7 +33,7 @@ Go to ***BuildPath*\\tdesktop\\Telegram** and run
|
||||
|
||||
configure.bat x64 -D TDESKTOP_API_ID=2040 -D TDESKTOP_API_HASH=b18441a1ff607e10a989891a5462e627
|
||||
|
||||
* Open ***BuildPath*\\tdesktop\\out\\Telegram.sln** in Visual Studio 2022
|
||||
* Open ***BuildPath*\\tdesktop\\out\\Telegram.slnx** in Visual Studio 2022
|
||||
* Select Telegram project and press Build > Build Telegram (Debug and Release configurations)
|
||||
* The result AyuGram.exe will be located in **D:\TBuild\tdesktop\out\Debug** (and **Release**)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user