If you add a contact that is already a contact, he is returned in the
response method list, yes. Currently we haven't a way to determinate,
only by using the addContact method, if the contact is an existing
contact. You can query his user type before trying to add it.
On 25/09/14 19:41, Michał Karnicki wrote:
> Roberto, assigned you so you can see and answer my question here - if we
> add a contact that already exists with a different name, the returned id
> list doesn't contain that contact, or does it? Should we have a separate
> way to signal the contact already exists to the UI?
>
> ** Changed in: libqtelegram
> Assignee: (unassigned) => Roberto Mier Escandón (rmescandon)
>
If you add a contact that is already a contact, he is returned in the
response method list, yes. Currently we haven't a way to determinate,
only by using the addContact method, if the contact is an existing
contact. You can query his user type before trying to add it.
On 25/09/14 19:41, Michał Karnicki wrote:
> Roberto, assigned you so you can see and answer my question here - if we
> add a contact that already exists with a different name, the returned id
> list doesn't contain that contact, or does it? Should we have a separate
> way to signal the contact already exists to the UI?
>
> ** Changed in: libqtelegram
> Assignee: (unassigned) => Roberto Mier Escandón (rmescandon)
>