Emoji message: Fix for sending emoji message (#4872)

This commit is contained in:
Alexander Zinchuk 2024-08-29 15:52:12 +02:00
parent 343d2adca5
commit 9bf26bbb1c

View File

@ -835,12 +835,9 @@ export function buildLocalMessage(
...media, ...media,
...(sticker && { sticker }), ...(sticker && { sticker }),
...(gif && { video: gif }), ...(gif && { video: gif }),
poll: poll && buildNewPoll(poll, localId), ...(poll && { poll: buildNewPoll(poll, localId) }),
contact, ...(contact && { contact }),
storyData: story && { ...(story && { storyData: { mediaType: 'storyData', ...story } }),
mediaType: 'storyData',
...story,
},
}, },
date: scheduledAt || Math.round(Date.now() / 1000) + getServerTimeOffset(), date: scheduledAt || Math.round(Date.now() / 1000) + getServerTimeOffset(),
isOutgoing: !isChannel, isOutgoing: !isChannel,