fixup! web/timeline: render MSC4144 per-message profiles

Signed-off-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
Sumner Evans 2025-01-03 08:52:18 -07:00
parent c9cc1f5ae8
commit 86f62facb4
No known key found for this signature in database

View file

@ -106,6 +106,8 @@ export function isSmallEvent(bodyType: React.FunctionComponent<EventContentProps
} }
export function getPerMessageProfile(evt: MemDBEvent | null): BeeperPerMessageProfile | undefined { export function getPerMessageProfile(evt: MemDBEvent | null): BeeperPerMessageProfile | undefined {
if (evt === null || evt.type !== "m.room.message" && evt.type !== "m.sticker") return undefined if (evt === null || evt.type !== "m.room.message" && evt.type !== "m.sticker") {
return undefined
}
return (evt.content as MessageEventContent)["com.beeper.per_message_profile"] return (evt.content as MessageEventContent)["com.beeper.per_message_profile"]
} }