mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-02 20:38:12 +00:00
Replaced separate click handlers for each spoiler entry with single one.
This commit is contained in:
parent
27063167ae
commit
ef543d040e
@ -46,10 +46,9 @@ void AnimatedSpoilerClickHandler::onClick(ClickContext context) const {
|
||||
} // namespace
|
||||
|
||||
void FillTextWithAnimatedSpoilers(Ui::Text::String &text) {
|
||||
const auto link = std::make_shared<AnimatedSpoilerClickHandler>();
|
||||
for (auto i = 0; i < text.spoilersCount(); i++) {
|
||||
text.setSpoiler(
|
||||
i + 1,
|
||||
std::make_shared<AnimatedSpoilerClickHandler>());
|
||||
text.setSpoiler(i + 1, link);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 2f5d5e0e79bf52ab04047bc93a4b624d6d33d46a
|
||||
Subproject commit 1cc74a41c4d1c3fe9824e4bf47c23e3bcd1759e6
|
Loading…
Reference in New Issue
Block a user