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,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
// Copyright @Radolyn, 2024
#pragma once
// 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,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
// Copyright @Radolyn, 2024
#include "ayu_infra.h"
#include "ayu_lang.h"
#include "ayu_worker.h"
#include "ayu/ayu_fonts.h"
#include "ayu/ayu_settings.h"
#include "ayu/data/ayu_database.h"
#include "lang/lang_instance.h"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -3,19 +3,16 @@
// We do not and cannot prevent the use of our code,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
// Copyright @Radolyn, 2024
#pragma once
#include <QString>
#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());
}
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>());
}

View file

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

View file

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

View file

@ -3,7 +3,7 @@
// We do not and cannot prevent the use of our code,
// but be respectful and credit the original author.
//
// Copyright @Radolyn, 2023
// Copyright @Radolyn, 2024
#pragma once
#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,
* but be respectful and credit the original author.
*
* Copyright @Radolyn, 2023
* Copyright @Radolyn, 2024
*/
using "ui/basic.style";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -2309,11 +2309,12 @@ void Session::updateEditedMessage(const MTPMessage &data) {
// AyuGram saveMessagesHistory
const auto settings = &AyuSettings::getInstance();
HistoryMessageEdition edit;
if (data.type() != mtpc_message) {
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) {
const auto msg = existing->originalText();

View file

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

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