mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-02 10:17:46 +01:00
Fix getPwrChat
This commit is contained in:
parent
c9a1df59f8
commit
b69b1f7ce0
@ -22,7 +22,7 @@
|
|||||||
"krakjoe/pthreads-polyfill": "*",
|
"krakjoe/pthreads-polyfill": "*",
|
||||||
"ext-pthreads": "*"
|
"ext-pthreads": "*"
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "beta",
|
||||||
"require": {
|
"require": {
|
||||||
"php-64bit": ">=8.1",
|
"php-64bit": ">=8.1",
|
||||||
"danog/primemodule": "^1",
|
"danog/primemodule": "^1",
|
||||||
|
@ -1077,12 +1077,15 @@ trait PeerHandler
|
|||||||
if (!($this->fetchParticipants($channel, $filter, $q, $total_count, $res))) {
|
if (!($this->fetchParticipants($channel, $filter, $q, $total_count, $res))) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
++$depth;
|
||||||
$promises = [];
|
$promises = [];
|
||||||
for ($x = 'a'; $x !== 'aa' && $total_count > \count($res['participants']); $x++) {
|
for ($x = 'a'; $x !== 'aa' && $total_count > \count($res['participants']); $x++) {
|
||||||
$promises []= async($this->recurseAlphabetSearchParticipants(...), $channel, $filter, $q.$x, $total_count, $res, $depth + 1);
|
$promises []= async(function () use ($channel, $filter, $q, $x, $total_count, &$res, $depth) {
|
||||||
|
$this->recurseAlphabetSearchParticipants($channel, $filter, $q.$x, $total_count, $res, $depth);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($depth > 2) {
|
if ($depth > 3) {
|
||||||
return $promises;
|
return $promises;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user