Skip to content

Commit

Permalink
SMACK-943: Prevent duplicate processing of mediated invitations
Browse files Browse the repository at this point in the history
When a MUC mediated invitation includes the `<x xmlns='jabber:x:conference'>` element (for backwards compitibility), then Smack should not fire the 'direct invitation' event listener. The value for 'inviter' that's used to invoke that listener will be false.
  • Loading branch information
guusdk committed Jun 14, 2024
1 parent 4f09244 commit c85ac08
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public static synchronized MultiUserChatManager getInstanceFor(XMPPConnection co
private static final StanzaFilter DIRECT_INVITATION_FILTER =
new AndFilter(StanzaTypeFilter.MESSAGE,
new ExtensionElementFilter<GroupChatInvitation>(GroupChatInvitation.class),
new NotFilter(new ExtensionElementFilter<>(MUCUser.class)),
new NotFilter(MessageTypeFilter.ERROR));

private static final ExpirationCache<DomainBareJid, DiscoverInfo> KNOWN_MUC_SERVICES = new ExpirationCache<>(
Expand Down

0 comments on commit c85ac08

Please sign in to comment.