ErrorBoundary improvements, StickerCreator logging/resiliency

This commit is contained in:
Scott Nonnenberg 2022-08-19 11:35:40 -07:00 committed by GitHub
parent 0fb45f045d
commit 6dd6a64d6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 67 additions and 19 deletions

View file

@ -972,7 +972,10 @@ export class Message extends React.PureComponent<Props, State> {
);
}
if (isImage(attachments) || isVideo(attachments)) {
if (
isImage(attachments) ||
(isVideo(attachments) && hasVideoScreenshot(attachments))
) {
const bottomOverlay = !isSticker && !collapseMetadata;
// We only want users to tab into this if there's more than one
const tabIndex = attachments.length > 1 ? 0 : -1;