Don't set blank gmsg-contact URI in ghost identifiers
This commit is contained in:
parent
4998d4a34b
commit
c409f75797
1 changed files with 11 additions and 7 deletions
12
puppet.go
12
puppet.go
|
@ -289,11 +289,15 @@ func (puppet *Puppet) UpdateContactInfo(ctx context.Context) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
contactInfo := map[string]any{
|
idents := []string{
|
||||||
"com.beeper.bridge.identifiers": []string{
|
|
||||||
fmt.Sprintf("tel:%s", puppet.Phone),
|
fmt.Sprintf("tel:%s", puppet.Phone),
|
||||||
fmt.Sprintf("gmsg-contact:%s", puppet.ContactID),
|
}
|
||||||
},
|
if puppet.ContactID != "" {
|
||||||
|
idents = append(idents, fmt.Sprintf("gmsg-contact:%s", puppet.ContactID))
|
||||||
|
}
|
||||||
|
|
||||||
|
contactInfo := map[string]any{
|
||||||
|
"com.beeper.bridge.identifiers": idents,
|
||||||
"com.beeper.bridge.remote_id": puppet.Key.String(),
|
"com.beeper.bridge.remote_id": puppet.Key.String(),
|
||||||
"com.beeper.bridge.service": "gmessages",
|
"com.beeper.bridge.service": "gmessages",
|
||||||
"com.beeper.bridge.network": "gmessages",
|
"com.beeper.bridge.network": "gmessages",
|
||||||
|
|
Loading…
Reference in a new issue