Use video screenshot as background blur in story viewer
This commit is contained in:
parent
08b2aeb237
commit
4a39264188
|
@ -33,6 +33,10 @@ export function getStoryBackground(attachment?: AttachmentType): string {
|
||||||
return getBackgroundColor(attachment.textAttachment);
|
return getBackgroundColor(attachment.textAttachment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (attachment.screenshot && attachment.screenshot.url) {
|
||||||
|
return `url("${attachment.screenshot.url}")`;
|
||||||
|
}
|
||||||
|
|
||||||
if (attachment.url) {
|
if (attachment.url) {
|
||||||
return `url("${attachment.url}")`;
|
return `url("${attachment.url}")`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue