Updates profile check when no profile pic is set

This commit is contained in:
joseavilasg09 2023-08-28 21:33:46 -05:00
parent e17c71d57b
commit a803c18a2e

View file

@ -71,6 +71,9 @@ func (us *UserService) GetProfilePhoto(c *gin.Context) {
return err
}
peer := self.AsInputPeer()
if self.Photo == nil {
return nil
}
photo, ok := self.Photo.AsNotEmpty()
if !ok {
return errors.New("profile not found")