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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user