Filter protocol providers that don't support group chat from the list of My chat rooms...

cusax-fix
Yana Stamcheva 18 years ago
parent 9ff9496617
commit b79a7264d4

@ -881,6 +881,16 @@ public void serviceChanged(ServiceEvent event)
ProtocolProviderService protocolProvider
= (ProtocolProviderService) service;
Object multiUserChatOpSet
= protocolProvider
.getOperationSet(OperationSetMultiUserChat.class);
// We don't care if there's no group chat operation set.
if (multiUserChatOpSet == null)
{
return;
}
if (event.getType() == ServiceEvent.REGISTERED)
{
chatRoomList.addChatProvider(protocolProvider);

Loading…
Cancel
Save