fix: make it build

This commit is contained in:
AlexeyZavar 2024-04-17 02:38:43 +03:00
parent 6a02bd66a9
commit 60a96bf9d6
5 changed files with 4 additions and 9 deletions

View file

@ -381,7 +381,7 @@ auto GenerateParticipantString(
data, data,
}); });
} }
const auto username = peer->userName(); const auto username = peer->username();
if (username.isEmpty()) { if (username.isEmpty()) {
return name; return name;
} }

View file

@ -2557,7 +2557,7 @@ void EmojiListWidget::setSelected(OverState newSelected) {
const auto hasSelection = !v::is_null(_selected); const auto hasSelection = !v::is_null(_selected);
if (hasSelection && Core::App().settings().suggestEmoji()) { if (hasSelection && Core::App().settings().suggestEmoji()) {
Ui::Tooltip::Show(1000, this); Ui::Tooltip::Show(350, this);
} }
setCursor(hasSelection ? style::cur_pointer : style::cur_default); setCursor(hasSelection ? style::cur_pointer : style::cur_default);

View file

@ -377,8 +377,6 @@ private:
void applyNextSearchQuery(); void applyNextSearchQuery();
void showPreview();
const std::shared_ptr<Show> _show; const std::shared_ptr<Show> _show;
const ComposeFeatures _features; const ComposeFeatures _features;
Mode _mode = Mode::Full; Mode _mode = Mode::Full;
@ -453,9 +451,6 @@ private:
rpl::event_stream<FileChosen> _customChosen; rpl::event_stream<FileChosen> _customChosen;
rpl::event_stream<> _jumpedToPremium; rpl::event_stream<> _jumpedToPremium;
base::Timer _previewTimer;
bool _previewShown = false;
}; };
tr::phrase<> EmojiCategoryTitle(int index); tr::phrase<> EmojiCategoryTitle(int index);

View file

@ -48,7 +48,7 @@ public:
bool active) override { bool active) override {
update(); update();
if (active && action && !action->dragText().isEmpty()) { if (active && action && !action->dragText().isEmpty()) {
Ui::Tooltip::Show(1000, this); Ui::Tooltip::Show(350, this);
} else { } else {
Ui::Tooltip::Hide(); Ui::Tooltip::Hide();
} }

@ -1 +1 @@
Subproject commit b893172343871ba854220c0ff670df4ae991bb97 Subproject commit 7a859501c14bb041ef8579d0b0724e912221421f