Skip to content

Commit

Permalink
'#2031: (Fix) If only the thumb is present, don't use a video control.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Dec 28, 2023
1 parent c0c7655 commit ec511cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,8 @@ private synchronized void printMessage(PrintWriter out, Message message, boolean
case VIDEO_MESSAGE:
case GIF_MESSAGE:
if (thumb != null) {
out.print("<img class=\"thumb iped-video\" src=\""); //$NON-NLS-1$
out.print("data:image/jpg;base64," + Util.encodeBase64(thumb) + "\""); //$NON-NLS-1$ //$NON-NLS-2$
out.println(Messages.getString("WhatsAppReport.Video") + ":<br>");
out.print("<img class=\"thumb\" src=\""); //$NON-NLS-1$
out.println(" title=\"" + getTitle(message) + "\"/>"); //$NON-NLS-1$ //$NON-NLS-2$
} else {
out.println("<div class=\"videoImg\" title=\"Video\"></div>"); //$NON-NLS-1$
Expand Down

0 comments on commit ec511cb

Please sign in to comment.