mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix wrong contact being written in presence XML.
This commit is contained in:
parent
9752a9c3e8
commit
439f922310
1 changed files with 3 additions and 1 deletions
|
|
@ -1528,7 +1528,9 @@ static int write_xml_presence_service(xmlTextWriterPtr writer, LinphonePresenceS
|
|||
err = xmlTextWriterWriteAttribute(writer, (const xmlChar *)"priority", (const xmlChar *)"0.8");
|
||||
}
|
||||
if (err >= 0) {
|
||||
err = xmlTextWriterWriteString(writer, (const xmlChar *)contact);
|
||||
const char *contact_str = service->contact;
|
||||
if (contact_str == NULL) contact_str = contact;
|
||||
err = xmlTextWriterWriteString(writer, (const xmlChar *)contact_str);
|
||||
}
|
||||
if (err >= 0) {
|
||||
/* Close the "contact" element. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue