mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +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:
parent
db8e2870f2
commit
07b7900b2e
1 changed files with 2 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue