[Telepathy] requestHandles method behaviour
George Kiagiadakis
gkiagia at tolabaki.gr
Mon Sep 19 20:36:34 UTC 2016
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 opens, the method requestHandle() is being
> called several times while the user is typing the contact to add. So
> several 'partial' contacts are being added to my map that holds my
> contact identifiers [2] [3] like this:
>
> mateus
> mateus2@
> mateus2 at test.s
> mateus2 at test.sip5060
> mateus2 at test.sip5060.net <mailto:mateus2 at test.sip5060.net>
>
> I'm wondering if this behaviour should be expected from telepathy or
> it's just a bug.
It doesn't seem to violate the spec, so I would say it's pretty fine for
a client to do that. It just needs a way to check if an identifier is a
valid contact or not and this is the best way to do it. Of course, it
may generate a lot of d-bus traffic, but I don't think that's causing
any serious problems.
More information about the telepathy
mailing list