Fix/improve minor things
This commit is contained in:
1 parent
a6ebc50f6d
commit
65f077c645
4 files changed
+13
-2
No files matched your search
@@ -66,6 +66,9 @@ type UsernameTemplateArgs struct {
|
||||
|
||||
func (bc BridgeConfig) FormatDisplayname(contact whatsapp.Contact) string {
|
||||
var buf bytes.Buffer
|
||||
if index := strings.IndexRune(contact.Jid, '@'); index > 0 {
|
||||
contact.Jid = "+" + contact.Jid[:index]
|
||||
}
|
||||
bc.displaynameTemplate.Execute(&buf, contact)
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user