throw an exception in case s.o. tries to send a notification to a contact from another protocol

cusax-fix
Emil Ivov 20 years ago
parent 7381f3896b
commit d27282d6de

@ -146,6 +146,12 @@ public void sendTypingNotification(Contact notifiedContact, int typingState)
{
assertConnected();
if( !(notifiedContact instanceof ContactJabberImpl) )
throw new IllegalArgumentException(
"The specified contact is not a Jabber contact."
+ notifiedContact);
String packetID =
(String)packetIDsTable.get(notifiedContact.getAddress());

Loading…
Cancel
Save