UnigramDev/Unigram

Weird if condition

AleTopp opened this issue · 3 comments

Hello,
I was exploring how Unigram uploads files and found this if condition I think it's wrong (or there is something I do not understand below):

if (permissions.CanSendVideos && permissions.CanSendVideos)

and by the context I think it should be:

if (permissions.CanSendPhotos && permissions.CanSendVideos)

By the Git Blame I see @FrayxRulez is the one who made the commit.
Sorry to disturb in case this wasn't necessary.

@AleTopp @FrayxRulez is also the only one to commit in this repository.

@AleTopp But yes, it’s correct. Thank you for pointing out.

Fixed in 12b5e31