Skip to content

Commit

Permalink
Use video screenshot as background blur in story viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-signal committed Jul 29, 2022
1 parent 08b2aeb commit 4a39264
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ts/util/getStoryBackground.ts
Expand Up @@ -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}")`;
}
Expand Down

0 comments on commit 4a39264

Please sign in to comment.