mirror of
https://github.com/mautrix/whatsapp.git
synced 2026-11-11 16:49:18 -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,
|
Comment: &content.Body,
|
||||||
ContextInfo: contextInfo,
|
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:
|
default:
|
||||||
return nil, nil, fmt.Errorf("%w %s", bridgev2.ErrUnsupportedMessageType, content.MsgType)
|
return nil, nil, fmt.Errorf("%w %s", bridgev2.ErrUnsupportedMessageType, content.MsgType)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue