forked from Mirrors/gomuks
web/mxtypes: fix reaction shortcode field
This commit is contained in:
parent
f1a28840ec
commit
2de87fa645
2 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ export interface ReactionEventContent {
|
||||||
event_id: EventID
|
event_id: EventID
|
||||||
key: string
|
key: string
|
||||||
}
|
}
|
||||||
"com.beeper.emoji.shortcode"?: string
|
"com.beeper.reaction.shortcode"?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EncryptedFile {
|
export interface EncryptedFile {
|
||||||
|
|
|
@ -97,7 +97,7 @@ export function emojiToReactionContent(emoji: PartialEmoji, evtID: EventID): Rea
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if (emoji.u?.startsWith("mxc://") && emoji.n) {
|
if (emoji.u?.startsWith("mxc://") && emoji.n) {
|
||||||
content["com.beeper.emoji.shortcode"] = emoji.n
|
content["com.beeper.reaction.shortcode"] = emoji.n
|
||||||
}
|
}
|
||||||
return content
|
return content
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue