Skip to content

Commit

Permalink
Changes to set the photo caption after photo upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
balkrishna-bv committed Nov 20, 2020
1 parent 257d435 commit bd95e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BVSDK/BVConversations/Submission/Photo/BVPhotoSubmission.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ - (void)upload:(BVPhotoSubmissionUploadCompletion)success
[self submit:^(BVSubmissionResponse<BVSubmittedPhoto *> *_Nonnull response) {

NSString *photoURL = response.result.photo.sizes.normalUrl;
NSString *photoCaption = response.result.photo.caption;
NSString *photoCaption = response.result.photo.caption ?: self.photoCaption;

success(photoURL, photoCaption);
}
Expand Down

0 comments on commit bd95e2b

Please sign in to comment.