1
0
Fork 0
forked from Mirrors/gomuks

web/mxtypes: fix reaction shortcode field

This commit is contained in:
Tulir Asokan 2024-10-26 20:44:37 +03:00
parent f1a28840ec
commit 2de87fa645
2 changed files with 2 additions and 2 deletions

View file

@ -131,7 +131,7 @@ export interface ReactionEventContent {
event_id: EventID
key: string
}
"com.beeper.emoji.shortcode"?: string
"com.beeper.reaction.shortcode"?: string
}
export interface EncryptedFile {

View file

@ -97,7 +97,7 @@ export function emojiToReactionContent(emoji: PartialEmoji, evtID: EventID): Rea
},
}
if (emoji.u?.startsWith("mxc://") && emoji.n) {
content["com.beeper.emoji.shortcode"] = emoji.n
content["com.beeper.reaction.shortcode"] = emoji.n
}
return content
}