Bug 51077

Summary: Never returns from RequestContactInfo() if contact is offline
Product: Telepathy Reporter: Will Thompson <will>
Component: idleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Will Thompson 2012-06-14 07:58:09 UTC
If you call RequestContactInfo() for a nickname which isn't online, Idle will never return an error (or indeed return at all).

You can see that this is the case by inspection of idle-contact-info.c: tp_svc_connection_interface_contact_info_return_from_request_contact_info() is only called from _return_from_request_contact_info() which is only called from _end_of_whois_handler().

Idle will receive an ERR_NOSUCKNICK for the nickname:

  401 <nickname> :some human-readable message

I guess it's not possible to match it up to the WHOIS, but if we get one of these while a WHOIS is pending it seems reasonable to assume the user is not online and return an error. (Empathy doesn't actually show you that an error occurred, but at least the “Information requested” spinner disappears.”)
Comment 1 GitLab Migration User 2019-12-03 20:09:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-idle/issues/41.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.