1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

Do not fire invitation rejection listeners with messages of type error. SMACK-101

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3013 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-11-01 15:57:00 +00:00 committed by gato
parent db8e2870f2
commit 07b7900b2e

View file

@ -2120,7 +2120,8 @@ public class MultiUserChat {
// Get the MUC User extension
MUCUser mucUser = getMUCUserExtension(packet);
// Check if the MUCUser informs that the invitee has declined the invitation
if (mucUser.getDecline() != null) {
if (mucUser.getDecline() != null &&
((Message) packet).getType() != Message.Type.ERROR) {
// Fire event for invitation rejection listeners
fireInvitationRejectionListeners(
mucUser.getDecline().getFrom(),