chore: update copyright

fix: don't display date for big emoji
This commit is contained in:
ZavaruKitsu 2024-02-04 20:43:48 +03:00
parent d4a22a5110
commit a96f8d8ac3
68 changed files with 79 additions and 74 deletions

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
// https://github.com/AyuGram/AyuGram4AX/blob/rewrite/TMessagesProj/src/main/java/com/radolyn/ayugram/AyuConstants.java // https://github.com/AyuGram/AyuGram4AX/blob/rewrite/TMessagesProj/src/main/java/com/radolyn/ayugram/AyuConstants.java

View file

@ -3,11 +3,12 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_infra.h" #include "ayu_infra.h"
#include "ayu_lang.h" #include "ayu_lang.h"
#include "ayu_worker.h" #include "ayu_worker.h"
#include "ayu/ayu_fonts.h"
#include "ayu/ayu_settings.h" #include "ayu/ayu_settings.h"
#include "ayu/data/ayu_database.h" #include "ayu/data/ayu_database.h"
#include "lang/lang_instance.h" #include "lang/lang_instance.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
namespace AyuInfra { namespace AyuInfra {

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_lang.h" #include "ayu_lang.h"
#include "qjsondocument.h" #include "qjsondocument.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include <QtNetwork/QNetworkReply> #include <QtNetwork/QNetworkReply>

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_settings.h" #include "ayu_settings.h"
#include "ayu/ui/ayu_logo.h" #include "ayu/ui/ayu_logo.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ayu/libs/json.hpp" #include "ayu/libs/json.hpp"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_state.h" #include "ayu_state.h"
namespace AyuState { namespace AyuState {

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "history/history.h" #include "history/history.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu/ayu_url_handlers.h" #include "ayu/ayu_url_handlers.h"
#include "base/qthelp_url.h" #include "base/qthelp_url.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "base/qthelp_regex.h" #include "base/qthelp_regex.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_worker.h" #include "ayu_worker.h"
#include "apiwrap.h" #include "apiwrap.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "window/window_session_controller.h" #include "window/window_session_controller.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_database.h" #include "ayu_database.h"
#include <ranges> #include <ranges>

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "entities.h" #include "entities.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include <string> #include <string>

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "messages_storage.h" #include "messages_storage.h"
#include "ayu/ayu_constants.h" #include "ayu/ayu_constants.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "entities.h" #include "entities.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "message_shot.h" #include "message_shot.h"
#include "styles/style_layers.h" #include "styles/style_layers.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "history/view/history_view_list_widget.h" #include "history/view/history_view_list_widget.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
namespace AyuFeatures::StreamerMode { namespace AyuFeatures::StreamerMode {

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#ifndef WIN32 #ifndef WIN32

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#ifdef WIN32 #ifdef WIN32

View file

@ -3,19 +3,16 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include <QString> #include <QString>
#include "json.hpp" #include "json.hpp"
inline void to_json(nlohmann::json& j, const QString& q) inline void to_json(nlohmann::json &j, const QString &q) {
{
j = nlohmann::json(q.toStdString()); j = nlohmann::json(q.toStdString());
} }
inline void from_json(const nlohmann::json& j, QString& q) inline void from_json(const nlohmann::json &j, QString &q) {
{
q = QString::fromStdString(j.get<std::string>()); q = QString::fromStdString(j.get<std::string>());
} }

View file

@ -4,7 +4,7 @@
* We do not and cannot prevent the use of our code, * We do not and cannot prevent the use of our code,
* but be respectful and credit the original author. * but be respectful and credit the original author.
* *
* Copyright @Radolyn, 2023 * Copyright @Radolyn, 2024
*/ */
using "ui/colors.palette"; using "ui/colors.palette";

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_logo.h" #include "ayu_logo.h"
#include "ayu/ayu_settings.h" #include "ayu/ayu_settings.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#define ICON(name, value) const auto name##_ICON = QStringLiteral(value) #define ICON(name, value) const auto name##_ICON = QStringLiteral(value)

View file

@ -4,7 +4,7 @@
* We do not and cannot prevent the use of our code, * We do not and cannot prevent the use of our code,
* but be respectful and credit the original author. * but be respectful and credit the original author.
* *
* Copyright @Radolyn, 2023 * Copyright @Radolyn, 2024
*/ */
using "ui/basic.style"; using "ui/basic.style";

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "edit_deleted_mark.h" #include "edit_deleted_mark.h"
#include "boxes/peer_list_controllers.h" #include "boxes/peer_list_controllers.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "base/timer.h" #include "base/timer.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "edit_edited_mark.h" #include "edit_edited_mark.h"
#include "boxes/peer_list_controllers.h" #include "boxes/peer_list_controllers.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "base/timer.h" #include "base/timer.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "font_selector.h" #include "font_selector.h"
#include "data/data_peer_values.h" #include "data/data_peer_values.h"
@ -44,6 +44,8 @@
#include <ayu/ayu_settings.h> #include <ayu/ayu_settings.h>
#include "ayu/ayu_fonts.h"
struct Font struct Font
{ {
QString FontName; QString FontName;

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "boxes/abstract_box.h" #include "boxes/abstract_box.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "message_shot_box.h" #include "message_shot_box.h"
#include <QFileDialog> #include <QFileDialog>

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ayu/features/messageshot/message_shot.h" #include "ayu/features/messageshot/message_shot.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "server_read_confirmation_box.h" #include "server_read_confirmation_box.h"
#include "lang_auto.h" #include "lang_auto.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ui/layers/box_content.h" #include "ui/layers/box_content.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "theme_selector_box.h" #include "theme_selector_box.h"
#include "lang_auto.h" #include "lang_auto.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ui/layers/box_content.h" #include "ui/layers/box_content.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "image_view.h" #include "image_view.h"
#include "styles/style_ayu_styles.h" #include "styles/style_ayu_styles.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ui/rp_widget.h" #include "ui/rp_widget.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu/ui/context_menu/context_menu.h" #include "ayu/ui/context_menu/context_menu.h"
#include <styles/style_menu_icons.h> #include <styles/style_menu_icons.h>

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "data/data_document.h" #include "data/data_document.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include <utility> #include <utility>
#include "ayu/ui/context_menu/menu_item_subtext.h" #include "ayu/ui/context_menu/menu_item_subtext.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ayu/data/entities.h" #include "ayu/data/entities.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu/ui/sections/edited/edited_log_inner.h" #include "ayu/ui/sections/edited/edited_log_inner.h"
#include "apiwrap.h" #include "apiwrap.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ayu/ui/sections/edited/edited_log_item.h" #include "ayu/ui/sections/edited/edited_log_item.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu/ui/sections/edited/edited_log_item.h" #include "ayu/ui/sections/edited/edited_log_item.h"
#include "ayu/data/entities.h" #include "ayu/data/entities.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ayu/data/entities.h" #include "ayu/data/entities.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu/ui/sections/edited/edited_log_section.h" #include "ayu/ui/sections/edited/edited_log_section.h"
#include "apiwrap.h" #include "apiwrap.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "window/section_widget.h" #include "window/section_widget.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "icon_picker.h" #include "icon_picker.h"
#include "tray.h" #include "tray.h"
#include "ayu/ayu_settings.h" #include "ayu/ayu_settings.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ui/rp_widget.h" #include "ui/rp_widget.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "settings_ayu.h" #include "settings_ayu.h"
#include "ayu/ayu_settings.h" #include "ayu/ayu_settings.h"
#include "ayu/ui/boxes/edit_deleted_mark.h" #include "ayu/ui/boxes/edit_deleted_mark.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "settings/settings_common.h" #include "settings/settings_common.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_profile_values.h" #include "ayu_profile_values.h"
#include "ayu/ayu_settings.h" #include "ayu/ayu_settings.h"
#include "ayu/utils/telegram_helpers.h" #include "ayu/utils/telegram_helpers.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
QString IDString(not_null<PeerData*> peer); QString IDString(not_null<PeerData*> peer);

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "ayu_mapper.h" #include "ayu_mapper.h"
#include "history/history.h" #include "history/history.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
namespace AyuMapper { namespace AyuMapper {

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "base/qt/qt_key_modifiers.h" #include "base/qt/qt_key_modifiers.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#include "telegram_helpers.h" #include "telegram_helpers.h"
#include <functional> #include <functional>
#include <QTimer> #include <QTimer>

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
#include "ayu/data/entities.h" #include "ayu/data/entities.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#include "windows_utils.h" #include "windows_utils.h"

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code, // We do not and cannot prevent the use of our code,
// but be respectful and credit the original author. // but be respectful and credit the original author.
// //
// Copyright @Radolyn, 2023 // Copyright @Radolyn, 2024
#pragma once #pragma once
void reloadAppIconFromTaskBar(); void reloadAppIconFromTaskBar();

View file

@ -2309,11 +2309,12 @@ void Session::updateEditedMessage(const MTPMessage &data) {
// AyuGram saveMessagesHistory // AyuGram saveMessagesHistory
const auto settings = &AyuSettings::getInstance(); const auto settings = &AyuSettings::getInstance();
HistoryMessageEdition edit;
if (data.type() != mtpc_message) { if (data.type() != mtpc_message) {
goto proceed; goto proceed;
} }
HistoryMessageEdition edit = HistoryMessageEdition(_session, data.c_message()); edit = HistoryMessageEdition(_session, data.c_message());
if (settings->saveMessagesHistory && !existing->isLocal() && !existing->author()->isSelf() && !edit.isEditHide) { if (settings->saveMessagesHistory && !existing->isLocal() && !existing->author()->isSelf() && !edit.isEditHide) {
const auto msg = existing->originalText(); const auto msg = existing->originalText();

View file

@ -22,6 +22,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/painter.h" #include "ui/painter.h"
#include "styles/style_chat.h" #include "styles/style_chat.h"
// AyuGram includes
#include "ayu/features/messageshot/message_shot.h"
namespace HistoryView { namespace HistoryView {
namespace { namespace {
@ -250,7 +254,7 @@ void UnwrappedMedia::drawSurrounding(
const auto rightActionSize = _parent->rightActionSize(); const auto rightActionSize = _parent->rightActionSize();
const auto fullRight = calculateFullRight(inner); const auto fullRight = calculateFullRight(inner);
auto fullBottom = height(); auto fullBottom = height();
if (needInfoDisplay()) { if (needInfoDisplay() && !AyuFeatures::MessageShot::ignoreRender(AyuFeatures::MessageShot::RenderPart::Date)) {
_parent->drawInfo( _parent->drawInfo(
p, p,
context, context,
@ -342,7 +346,7 @@ void UnwrappedMedia::drawSurrounding(
replyRight = rectx + rectw; replyRight = rectx + rectw;
} }
} }
if (rightActionSize) { if (rightActionSize && !AyuFeatures::MessageShot::isTakingShot()) {
const auto position = calculateFastActionPosition( const auto position = calculateFastActionPosition(
inner, inner,
rightAligned, rightAligned,

@ -1 +1 @@
Subproject commit a7dfd383490e9e3a3a83b2b920d34f6409d37eee Subproject commit 48565bd5633aa448d6fef600c50eed950ec91e10