fix: make it build & reformat

This commit is contained in:
AlexeyZavar 2025-07-06 17:15:18 +03:00
parent 616a80ff31
commit 4fc9421dd5
7 changed files with 76 additions and 73 deletions

View file

@ -16,7 +16,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history_item.h"
#include "history/history_unread_things.h"
#include "apiwrap.h"
#include <ayu/ayu_settings.h>
// AyuGram includes
#include "ayu/ayu_settings.h"
namespace Api {
namespace {

View file

@ -851,12 +851,12 @@ void SetupQoLToggles(not_null<Ui::VerticalLayout*> container) {
tr::ayu_HideChannelReactions(),
st::settingsButtonNoIcon
)->toggleOn(
rpl::single(!settings.hideChannelReactions)
rpl::single(!settings->hideChannelReactions)
)->toggledValue(
) | rpl::filter(
[=](bool enabled)
{
return (!enabled != settings.hideChannelReactions);
return (!enabled != settings->hideChannelReactions);
}) | start_with_next(
[=](bool enabled)
{
@ -870,12 +870,12 @@ void SetupQoLToggles(not_null<Ui::VerticalLayout*> container) {
tr::ayu_HideGroupReactions(),
st::settingsButtonNoIcon
)->toggleOn(
rpl::single(!settings.hideGroupReactions)
rpl::single(!settings->hideGroupReactions)
)->toggledValue(
) | rpl::filter(
[=](bool enabled)
{
return (!enabled != settings.hideGroupReactions);
return (!enabled != settings->hideGroupReactions);
}) | start_with_next(
[=](bool enabled)
{

View file

@ -101,9 +101,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtCore/QMimeData>
// AyuGram includes
#include "ayu/ayu_settings.h"
#include "ayu/ui/context_menu/context_menu.h"
#include "ayu/utils/telegram_helpers.h"
#include "ayu/ayu_settings.h"
#include "data/data_document_media.h"

View file

@ -29,8 +29,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "styles/style_chat_helpers.h"
// AyuGram includes
#include "ayu/features/messageshot/message_shot.h"
#include "ayu/ayu_settings.h"
#include "ayu/features/messageshot/message_shot.h"
namespace HistoryView::Reactions {
@ -104,7 +104,7 @@ std::vector<ReactionId> InlineList::computeTagsList() const {
}
auto result = std::vector<ReactionId>();
result.reserve(_buttons.size());
for (const auto& button : _buttons) {
for (const auto &button : _buttons) {
result.push_back(button.id);
}
return result;
@ -881,9 +881,9 @@ InlineListData InlineListDataFromMessage(not_null<Element*> view) {
if (showUserpics) {
result.recent.reserve(recent.size());
for (const auto &[id, list] : recent) {
auto& out = result.recent.emplace(id).first->second;
auto &out = result.recent.emplace(id).first->second;
out.reserve(list.size());
for (const auto& r : list) {
for (const auto &r : list) {
out.push_back(r.peer);
}
}