mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Beta version 3.2.6: Fix build on macOS.
This commit is contained in:
parent
57340f9514
commit
9360f1f970
1 changed files with 2 additions and 2 deletions
|
@ -1191,7 +1191,7 @@ bool ListWidget::hasCopyRestrictionForSelected() const {
|
|||
if (hasCopyRestriction()) {
|
||||
return true;
|
||||
}
|
||||
for (const auto [itemId, selection] : _selected) {
|
||||
for (const auto &[itemId, selection] : _selected) {
|
||||
if (const auto item = session().data().message(itemId)) {
|
||||
if (item->forbidsForward()) {
|
||||
return true;
|
||||
|
@ -1202,7 +1202,7 @@ bool ListWidget::hasCopyRestrictionForSelected() const {
|
|||
}
|
||||
|
||||
bool ListWidget::showCopyRestrictionForSelected() {
|
||||
for (const auto [itemId, selection] : _selected) {
|
||||
for (const auto &[itemId, selection] : _selected) {
|
||||
if (showCopyRestriction(session().data().message(itemId))) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue