Fix grouping of more than 10 messages
This commit is contained in:
parent
aec72cf579
commit
a0712f4383
1 changed files with 7 additions and 3 deletions
|
|
@ -3822,16 +3822,20 @@ void ApiWrap::forwardMessagesUnquoted(
|
||||||
return forwardFrom != newFrom
|
return forwardFrom != newFrom
|
||||||
|| !currentGroupId
|
|| !currentGroupId
|
||||||
|| currentGroupId != newGroupId
|
|| currentGroupId != newGroupId
|
||||||
|| lastGroupCheck;
|
|| lastGroupCheck
|
||||||
|
|| messageGroupCount >= 10;
|
||||||
} else if (cForwardGrouped()) {
|
} else if (cForwardGrouped()) {
|
||||||
return lastGroupCheck;
|
return lastGroupCheck
|
||||||
|
|| messageGroupCount >= 10;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto isGrouped = [&] {
|
const auto isGrouped = [&] {
|
||||||
return lastGroup != LastGroupType::None && messageGroupCount > 1;
|
return lastGroup != LastGroupType::None
|
||||||
|
&& messageGroupCount > 1
|
||||||
|
&& messageGroupCount <= 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto forwardQuotedSingle = [&] (not_null<HistoryItem *> item) {
|
const auto forwardQuotedSingle = [&] (not_null<HistoryItem *> item) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue