Use video screenshot as background blur in story viewer

This commit is contained in:
Josh Perez 2022-07-29 13:13:01 -04:00 committed by GitHub
parent 08b2aeb237
commit 4a39264188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ export function getStoryBackground(attachment?: AttachmentType): string {
return getBackgroundColor(attachment.textAttachment);
}
if (attachment.screenshot && attachment.screenshot.url) {
return `url("${attachment.screenshot.url}")`;
}
if (attachment.url) {
return `url("${attachment.url}")`;
}