Commit dce2d1eb authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/views/App/MainWindow/ContactEdit): set first sip address field on contact creation

parent a67cc3b8
......@@ -86,6 +86,15 @@ ColumnLayout {
if (!_contact) {
_vcard = CoreManager.createDetachedVcardModel()
if (sipAddress && sipAddress.length > 0) {
_vcard.addSipAddress(
Utils.startsWith(sipAddress, 'sip:')
? sipAddress
: 'sip:' + sipAddress
)
}
_edition = true
} else {
_vcard = _contact.vcard
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment