mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
rpl::type_erased() -> rpl::type_erased.
This commit is contained in:
@@ -1069,13 +1069,13 @@ void Controller::fillDiscussionLinkButton() {
|
||||
? _discussionLinkUpdates.events(
|
||||
) | rpl::map([](ChannelData *chat) {
|
||||
return chat ? chat->name() : QString();
|
||||
}) | rpl::type_erased()
|
||||
}) | rpl::type_erased
|
||||
: rpl::combine(
|
||||
tr::lng_manage_discussion_group_add(),
|
||||
_discussionLinkUpdates.events()
|
||||
) | rpl::map([=](const QString &add, ChannelData *chat) {
|
||||
return chat ? chat->name() : add;
|
||||
}) | rpl::type_erased();
|
||||
}) | rpl::type_erased;
|
||||
AddButtonWithText(
|
||||
_controls.buttonsLayout,
|
||||
std::move(text),
|
||||
|
||||
Reference in New Issue
Block a user