mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-04 20:52:54 +01:00
userinfo: hardcode name for Meta AI
This commit is contained in:
parent
94020f9088
commit
c40fa063b4
1 changed files with 3 additions and 0 deletions
|
@ -173,6 +173,9 @@ func (wa *WhatsAppClient) getUserInfo(ctx context.Context, jid types.JID, fetchA
|
|||
}
|
||||
|
||||
func (wa *WhatsAppClient) contactToUserInfo(jid types.JID, contact types.ContactInfo, getAvatar bool) *bridgev2.UserInfo {
|
||||
if jid == types.MetaAIJID && contact.PushName == jid.User {
|
||||
contact.PushName = "Meta AI"
|
||||
}
|
||||
ui := &bridgev2.UserInfo{
|
||||
Name: ptr.Ptr(wa.Main.Config.FormatDisplayname(jid, contact)),
|
||||
IsBot: ptr.Ptr(jid.IsBot()),
|
||||
|
|
Loading…
Reference in a new issue