mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Add error display on link sharing.
This commit is contained in:
@@ -570,13 +570,13 @@ void LeaveBox(
|
||||
|
||||
void ConfirmBox(
|
||||
not_null<Ui::GenericBox*> box,
|
||||
const QString &text,
|
||||
const TextWithEntities &text,
|
||||
rpl::producer<QString> button,
|
||||
Fn<void()> callback) {
|
||||
box->addRow(
|
||||
object_ptr<Ui::FlatLabel>(
|
||||
box.get(),
|
||||
text,
|
||||
rpl::single(text),
|
||||
st::groupCallBoxLabel),
|
||||
st::boxPadding);
|
||||
if (callback) {
|
||||
|
@@ -34,7 +34,7 @@ void LeaveBox(
|
||||
|
||||
void ConfirmBox(
|
||||
not_null<Ui::GenericBox*> box,
|
||||
const QString &text,
|
||||
const TextWithEntities &text,
|
||||
rpl::producer<QString> button,
|
||||
Fn<void()> callback);
|
||||
|
||||
|
@@ -825,7 +825,7 @@ void GroupPanel::addMembers() {
|
||||
};
|
||||
auto box = Box(
|
||||
Group::ConfirmBox,
|
||||
text,
|
||||
TextWithEntities{ text },
|
||||
tr::lng_participant_invite(),
|
||||
[=] { inviteWithAdd(users, nonMembers, finishWithConfirm); });
|
||||
*shared = box.data();
|
||||
|
@@ -149,8 +149,8 @@ object_ptr<ShareBox> ShareInviteLinkBox(
|
||||
}
|
||||
text.append(error.first);
|
||||
if (const auto weak = *box) {
|
||||
//weak->getDelegate()->show(
|
||||
// Box(ConfirmBox, text, nullptr, nullptr));
|
||||
weak->getDelegate()->show(
|
||||
Box(ConfirmBox, text, nullptr, nullptr));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user