From 8aaac41655f860167dcaa4fdb22ea0e09667a339 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Fri, 14 Jan 2011 13:40:38 +0000 Subject: [PATCH] Do not show chat button for apple or outlook address book contacts, even if the appropriate operation set is supported, until our user interface start handling external source contact chats properly. --- .../gui/main/contactlist/ContactListTreeCellRenderer.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java index 294371b71..c67eb8849 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java @@ -634,8 +634,12 @@ private void initButtonsPanel(UIContact uiContact) else statusMessageLabelHeight = 15; - UIContactDetail imContact = uiContact.getDefaultContactDetail( - OperationSetBasicInstantMessaging.class); + UIContactDetail imContact = null; + // For now we support instance messaging only for contacts in our + // contact list until it's implemented for external source contacts. + if (uiContact.getDescriptor() instanceof MetaContact) + imContact = uiContact.getDefaultContactDetail( + OperationSetBasicInstantMessaging.class); if (imContact != null) {