mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
web/timeline: don't render locations in replies
This commit is contained in:
parent
fa4d4144ba
commit
6830e5d1cc
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ export function getBodyType(evt: MemDBEvent, forReply = false): React.FunctionCo
|
|||
}
|
||||
return MediaMessageBody
|
||||
case "m.location":
|
||||
if (forReply) {
|
||||
return TextMessageBody
|
||||
}
|
||||
return LocationMessageBody
|
||||
default:
|
||||
return UnknownMessageBody
|
||||
|
|
Loading…
Add table
Reference in a new issue