mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 05: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:
|
||||
photos = extra
|
||||
else:
|
||||
photos = [current]
|
||||
if current:
|
||||
photos = [current]
|
||||
else:
|
||||
photos = []
|
||||
|
||||
return types.List(photos[offset:limit])
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue