Skip to content

Commit

Permalink
Fix media rail thumbnail for in-app recorded video.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-signal authored and greyson-signal committed Feb 14, 2020
1 parent 9dfc57c commit b92c389
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public static MediaDataSource createFor(@NonNull AttachmentSecret attachmentSecr
}

public static MediaDataSource createForDiskBlob(@NonNull AttachmentSecret attachmentSecret, @NonNull File mediaFile) {
return new ModernEncryptedMediaDataSource(attachmentSecret, mediaFile, null, 0);
return new ModernEncryptedMediaDataSource(attachmentSecret, mediaFile, null, mediaFile.length() - 32);
}
}

0 comments on commit b92c389

Please sign in to comment.