mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix Release build in Xcode.
This commit is contained in:
parent
9b6d41a0aa
commit
ea644a3f81
1 changed files with 5 additions and 3 deletions
|
@ -602,16 +602,18 @@ void Controller::fillLinkedChatButton() {
|
|||
return chat ? edit : restore;
|
||||
});
|
||||
auto label = isGroup
|
||||
? _linkedChatUpdates.events() | rpl::map([](ChannelData *chat) {
|
||||
? _linkedChatUpdates.events(
|
||||
) | rpl::map([](ChannelData *chat) {
|
||||
return chat ? chat->name : QString();
|
||||
}) : rpl::combine(
|
||||
}) | rpl::type_erased()
|
||||
: rpl::combine(
|
||||
Lang::Viewer(lng_manage_discussion_group_add),
|
||||
_linkedChatUpdates.events()
|
||||
) | rpl::map([=](const QString &add, ChannelData *chat) {
|
||||
return chat
|
||||
? chat->name
|
||||
: add;
|
||||
});
|
||||
}) | rpl::type_erased();
|
||||
AddButtonWithText(
|
||||
_controls.buttonsLayout,
|
||||
std::move(text),
|
||||
|
|
Loading…
Add table
Reference in a new issue