Skip to content

Commit

Permalink
Support Opening the Scheduled Document files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagar0-0 committed Feb 1, 2025
1 parent 553d783 commit a25c4be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private OpenClickedListener(@NonNull Slide slide) {

@Override
public void onClick(View v) {
if (!slide.isPendingDownload() && !slide.isInProgress() && viewListener != null) {
if (slide.hasDocument() && slide.getUri()!=null && viewListener != null) {
viewListener.onClick(v, slide);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2597,7 +2597,7 @@ public void onClick(View v, Slide slide) {

private class ThumbnailClickListener implements SlideClickListener {
public void onClick(final View v, final Slide slide) {
if (shouldInterceptClicks(messageRecord) || !batchSelected.isEmpty() || isCondensedMode()) {
if (shouldInterceptClicks(messageRecord) || !batchSelected.isEmpty() || (isCondensedMode() && !slide.hasDocument())) {
performClick();
} else if (!canPlayContent && mediaItem != null && eventListener != null) {
eventListener.onPlayInlineContent(conversationMessage);
Expand Down

0 comments on commit a25c4be

Please sign in to comment.