Skip to content

Commit 1b0b08d

Browse files
docs: adding some code comment
1 parent f671d5d commit 1b0b08d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package/src/components/Attachment/Gallery.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ const GalleryWithContext = <
224224

225225
const defaultOnPress = () => {
226226
if (type === 'video' && !isVideoPackageAvailable()) {
227+
// This condition is kinda unreachable, since we render videos as file attachment if the video
228+
// library is not installed. But doesn't hurt to have extra safeguard, in case of some customizations.
227229
openUrlSafely(url);
228230
} else {
229231
openImageViewer();

0 commit comments

Comments
 (0)