2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Fixed possible incorrect order of links in Ui.

This commit is contained in:
23rd
2022-02-03 23:37:55 +03:00
parent 4913288061
commit 80aa596310
3 changed files with 22 additions and 20 deletions

View File

@@ -131,17 +131,17 @@ void HistoryMessageForwarded::create(const HistoryMessageVia *via) const {
phrase = tr::lng_forwarded_channel_via(
tr::now,
lt_channel,
Ui::Text::Link(phrase.text, QString()), // Link 1.
Ui::Text::Link(phrase.text, 1), // Link 1.
lt_inline_bot,
Ui::Text::Link('@' + via->bot->username, {}), // Link 2.
Ui::Text::Link('@' + via->bot->username, 2), // Link 2.
Ui::Text::WithEntities);
} else {
phrase = tr::lng_forwarded_via(
tr::now,
lt_user,
Ui::Text::Link(phrase.text, QString()), // Link 1.
Ui::Text::Link(phrase.text, 1), // Link 1.
lt_inline_bot,
Ui::Text::Link('@' + via->bot->username, {}), // Link 2.
Ui::Text::Link('@' + via->bot->username, 2), // Link 2.
Ui::Text::WithEntities);
}
} else {