mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +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:
@@ -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 {};
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user