Update story gradients
This commit is contained in:
parent
e533292d33
commit
4caa260a22
5 changed files with 48 additions and 16 deletions
|
@ -679,7 +679,13 @@ export default class MessageSender {
|
|||
}
|
||||
|
||||
if (attachmentAttrs.gradient) {
|
||||
textAttachment.gradient = attachmentAttrs.gradient;
|
||||
const { colors, positions, ...rest } = attachmentAttrs.gradient;
|
||||
|
||||
textAttachment.gradient = {
|
||||
...rest,
|
||||
colors: colors?.slice(),
|
||||
positions: positions?.slice(),
|
||||
};
|
||||
textAttachment.background = 'gradient';
|
||||
} else {
|
||||
textAttachment.color = attachmentAttrs.color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue