2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Version 4.6.

- Emoji Profile Pictures.
Quickly create group and profile pictures from animated emoji
and stickers with the new "Use an Emoji" option.
- Emoji Categories.
Filter stickers and emoji by categories like "love", "cheers"
or "sleeping" in the sticker and emoji tabs.
- Chat Translation.
As a Premium user, translate entire chats in real time
as you scroll them or receive new messages.
- Media Permissions in Groups.
Control whether members of your groups can send
9 distinct media types – like Photos, Voice or Video Messages.
- Select Chats for Bots.
Bot developers can now let users quickly select groups,
channels or contacts that meet predefined criteria (more in @BotNews).
- Open in New Window.
Open chats or additional accounts in separate windows.
This commit is contained in:
John Preston
2023-02-03 21:30:37 +04:00
parent 84bf716f94
commit b9188f892f
14 changed files with 28 additions and 52 deletions

View File

@@ -220,23 +220,6 @@ ChatRestrictions NegateRestrictions(ChatRestrictions value) {
| Flag::SendOther);
}
[[nodiscard]] std::vector<ChatRestrictions> MediaRestrictions() {
return std::vector<ChatRestrictions>{
ChatRestriction::SendPhotos,
ChatRestriction::SendVideos,
ChatRestriction::SendVideoMessages,
ChatRestriction::SendMusic,
ChatRestriction::SendVoiceMessages,
ChatRestriction::SendFiles,
ChatRestriction::SendStickers
| ChatRestriction::SendGifs
| ChatRestriction::SendGames
| ChatRestriction::SendInline,
ChatRestriction::EmbedLinks,
ChatRestriction::SendPolls,
};
}
auto Dependencies(ChatAdminRights)
-> std::vector<std::pair<ChatAdminRight, ChatAdminRight>> {
return {};

View File

@@ -267,7 +267,6 @@ bool SkipTranslate(TextWithEntities textWithEntities) {
#ifndef TDESKTOP_DISABLE_SPELLCHECK
const auto result = Platform::Language::Recognize(text);
const auto skip = Core::App().settings().skipTranslationLanguages();
const auto test = (result == result);
return result.known() && ranges::contains(skip, result);
#else
return false;