forked from Mirrors/gomuks
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
|
return MediaMessageBody
|
||||||
case "m.location":
|
case "m.location":
|
||||||
|
if (forReply) {
|
||||||
|
return TextMessageBody
|
||||||
|
}
|
||||||
return LocationMessageBody
|
return LocationMessageBody
|
||||||
default:
|
default:
|
||||||
return UnknownMessageBody
|
return UnknownMessageBody
|
||||||
|
|
Loading…
Add table
Reference in a new issue