Removed text transform from send button in toasts.

This commit is contained in:
23rd 2023-08-15 02:10:26 +03:00
parent 3d0b139c40
commit a0fb81b871
3 changed files with 2 additions and 4 deletions

View File

@ -15,7 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/widgets/labels.h"
#include "ui/widgets/buttons.h"
#include "ui/wrap/vertical_layout.h"
#include "ui/text/text_utilities.h" // Ui::Text::ToUpper
#include "ui/text/text_utilities.h" // Ui::Text::RichLangValue
#include "boxes/peer_list_box.h"
#include "ui/boxes/confirm_box.h"
#include "boxes/add_contact_box.h"

View File

@ -1848,8 +1848,7 @@ ClickHandlerPtr MediaDice::MakeHandler(
.multiline = true,
};
if (CanSend(history->peer, ChatRestriction::SendOther)) {
auto link = Ui::Text::Link(
tr::lng_about_random_send(tr::now).toUpper());
auto link = Ui::Text::Link(tr::lng_about_random_send(tr::now));
link.entities.push_back(
EntityInText(EntityType::Semibold, 0, link.text.size()));
config.text.append(' ').append(std::move(link));

View File

@ -20,7 +20,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/widgets/buttons.h"
#include "ui/gl/gl_detection.h"
#include "ui/layers/generic_box.h"
#include "ui/text/text_utilities.h" // Ui::Text::ToUpper
#include "ui/text/format_values.h"
#include "ui/boxes/single_choice_box.h"
#include "ui/painter.h"