mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-11 11:47:09 +02:00
Support 'FT' "country" flag emoji.
This commit is contained in:
parent
4b2c5b3321
commit
b843f91b3c
3 changed files with 5 additions and 0 deletions
|
@ -322,6 +322,9 @@ QString CountriesInstance::flagEmojiByISO2(const QString &iso) const {
|
|||
|| iso.back() < 'A'
|
||||
|| iso.back() > 'Z') {
|
||||
return QString();
|
||||
} else if (iso == u"FT"_q) {
|
||||
return QString::fromUtf8(
|
||||
"\xF0\x9F\x8F\xB4\xE2\x80\x8D\xE2\x98\xA0\xEF\xB8\x8F");
|
||||
}
|
||||
auto result = QString(4, QChar(0xD83C));
|
||||
result[1] = QChar(iso.front().unicode() - 'A' + 0xDDE6);
|
||||
|
|
|
@ -748,6 +748,7 @@ AdminLog::OwnedItem AboutView::makeNewPeerInfo(not_null<UserData*> user) {
|
|||
owned.get(),
|
||||
GenerateNewPeerInfo(owned.get(), _item.get(), user, _commonGroups),
|
||||
HistoryView::MediaGenericDescriptor{
|
||||
.maxWidth = st::newPeerWidth,
|
||||
.service = true,
|
||||
.hideServiceText = true,
|
||||
}));
|
||||
|
|
|
@ -1244,3 +1244,4 @@ newPeerUserpics: GroupCallUserpics {
|
|||
align: align(left);
|
||||
}
|
||||
newPeerUserpicsPadding: margins(0px, 3px, 0px, 0px);
|
||||
newPeerWidth: 320px;
|
||||
|
|
Loading…
Add table
Reference in a new issue