mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 07:23:02 +02:00
fix: forward box crash
Co-authored-by: mmlo <eu@memelo.dev>
This commit is contained in:
parent
aafdac6da4
commit
f56b5ea03e
1 changed files with 1 additions and 1 deletions
|
@ -2952,7 +2952,7 @@ QPointer<Ui::BoxContent> ShowForwardMessagesBox(
|
||||||
const auto items = history->owner().idsToItems(msgIds);
|
const auto items = history->owner().idsToItems(msgIds);
|
||||||
auto ayuForwarding = AyuForward::isAyuForwardNeeded(items) || AyuForward::isFullAyuForwardNeeded(items.front());
|
auto ayuForwarding = AyuForward::isAyuForwardNeeded(items) || AyuForward::isFullAyuForwardNeeded(items.front());
|
||||||
|
|
||||||
if (!state->submit || ayuForwarding && successCallback) {
|
if ((!state->submit || ayuForwarding) && successCallback) {
|
||||||
successCallback();
|
successCallback();
|
||||||
}
|
}
|
||||||
// AyuGram-changed
|
// AyuGram-changed
|
||||||
|
|
Loading…
Add table
Reference in a new issue