mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 06:38:07 +00:00
fix(ui/views/App/MainWindow/ContactEdit): set first sip address field on contact creation
This commit is contained in:
parent
a67cc3b8d3
commit
dce2d1eb00
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue