2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Suggest animated emoji in Saved Messages.

This commit is contained in:
John Preston
2022-08-02 19:23:06 +03:00
parent 2319278c92
commit 59903b0b1c
7 changed files with 67 additions and 41 deletions

View File

@@ -674,15 +674,19 @@ void SendFilesBox::updateSendWayControlsVisibility() {
}
void SendFilesBox::setupCaption() {
const auto allow = [=](const auto&) {
return _allowEmojiWithoutPremium;
};
InitMessageFieldHandlers(
_controller,
_caption.data(),
Window::GifPauseReason::Layer,
[=](const auto&) { return _allowEmojiWithoutPremium; });
allow);
Ui::Emoji::SuggestionsController::Init(
getDelegate()->outerContainer(),
_caption,
&_controller->session());
&_controller->session(),
{ .suggestCustomEmoji = true, .allowCustomWithoutPremium = allow });
_caption->setSubmitSettings(
Core::App().settings().sendSubmitWay());