Skip to content

Commit c967a78

Browse files
committed
Fix possible crash in reaction reports.
1 parent ca52419 commit c967a78

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Telegram/SourceFiles/boxes/moderate_messages_box.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ void CreateModerateMessagesBox(
741741
Ui::AddExpandablePeerList(report, controller, inner);
742742
handleSubmition(report);
743743

744+
const auto show = box->uiShow();
744745
handleConfirmation(report, controller, [=](
745746
not_null<PeerData*> p,
746747
not_null<ChannelData*> c) {
@@ -750,7 +751,7 @@ void CreateModerateMessagesBox(
750751
p
751752
).canReport) {
752753
Api::ReportReaction(
753-
box->uiShow(),
754+
show,
754755
reaction->peer,
755756
reaction->msgId,
756757
p);

0 commit comments

Comments
 (0)