mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 16:04:51 +00:00
Fix get_profile_photos not working correctly in case of no chat photos
This commit is contained in:
parent
2c99926825
commit
71bdfe6c40
1 changed files with 4 additions and 1 deletions
|
|
@ -100,7 +100,10 @@ class GetProfilePhotos(Scaffold):
|
||||||
else:
|
else:
|
||||||
photos = extra
|
photos = extra
|
||||||
else:
|
else:
|
||||||
|
if current:
|
||||||
photos = [current]
|
photos = [current]
|
||||||
|
else:
|
||||||
|
photos = []
|
||||||
|
|
||||||
return types.List(photos[offset:limit])
|
return types.List(photos[offset:limit])
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue