Re: [Telepathy] requestHandles method behaviour

2016-09-19 Thread Alexandr Akulich
On Tue, Sep 20, 2016 at 2:57 AM, Mateus Bellomo wrote: >> The identifier <-> handle map is not the "contact list". Under >> "contact list" I mean contacts, which e.g. would be returned by >> Connection.Interface.ContactList GetContactListAttributes(). > > So in this case

Re: [Telepathy] requestHandles method behaviour

2016-09-19 Thread Mateus Bellomo
I have just noticed that telepathy-morse actually uses the m_handles as the 'oficial' contact list: it is used to get the contacts in GetContactListAttributes() and the contacts are added there in the requestHandles() calling. [1]

Re: [Telepathy] requestHandles method behaviour

2016-09-19 Thread Mateus Bellomo
> The identifier <-> handle map is not the "contact list". Under > "contact list" I mean contacts, which e.g. would be returned by > Connection.Interface.ContactList GetContactListAttributes(). So in this case you could hold entries like (1,mateus2) and (2, mate...@test.sip5060.net) in the map

Re: [Telepathy] requestHandles method behaviour

2016-09-19 Thread Alexandr Akulich
Morse and Nonsense both returns a handle list. In case of Nonsense: type of the list is UniqueHandleMap with operators and the used operator [] will return a new handle for each new identifier. https://github.com/TelepathyQt/telepathy-nonsense/blob/master/uniquehandlemap.cc#L32 The identifier

Re: [Telepathy] requestHandles method behaviour

2016-09-19 Thread Mateus Bellomo
Thanks for the reply guys and sorry for the duplicated post =) > The thing is that ensureHandle() does (or at least should) NOT add the > identifier to the contact list. When you say list do you also refer to the map that I hold contacts identifiers and handles, or you refer just the actual list

Re: [Telepathy] requestHandles method behaviour

2016-09-19 Thread George Kiagiadakis
On 09/19/2016 08:59 PM, Mateus Bellomo wrote: > Hello, > > I have implemented the requestSubscription() and requestHandles() > methods at telepathy-resiprocate [1]. I'm using Empathy as a client and > testing it I noticed that when I try to add a contact in the contact > list, in the window that

Re: [Telepathy] requestHandles method behaviour

2016-09-19 Thread Alexandr Akulich
Hi Mateus, The question is sounds similar to [1]. I replied personally to you, instead of to the list, so I will quote myself: On Sun, Jun 5, 2016 at 1:42 AM, Alexandr Akulich wrote: > Hi Mateus. > > I know about this behaviour. Empathy wants to get know if the