mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
fixup! web/timeline: render MSC4144 per-message profiles
Signed-off-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
parent
c9cc1f5ae8
commit
86f62facb4
1 changed files with 3 additions and 1 deletions
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue