mirror of
https://github.com/mautrix/whatsapp.git
synced 2026-11-12 00:59:17 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08f33e20cf | ||
|
|
6cb748bc9c | ||
|
|
5edff0e7bf |
1 changed files with 5 additions and 0 deletions
|
|
@ -168,6 +168,11 @@ func (mc *MessageConverter) ToWhatsApp(
|
|||
Comment: &content.Body,
|
||||
ContextInfo: contextInfo,
|
||||
}
|
||||
if msc3488, ok := evt.Content.Raw["org.matrix.msc3488.location"].(map[string]any); ok {
|
||||
if description, ok := msc3488["description"].(string); ok && description != "" {
|
||||
message.LocationMessage.Name = &description
|
||||
}
|
||||
}
|
||||
default:
|
||||
return nil, nil, fmt.Errorf("%w %s", bridgev2.ErrUnsupportedMessageType, content.MsgType)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue