1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 09:09:38 +02:00

Fix EntityCapsManager presenceSend

capturing all outoing presences of type 'available' would also capture
presences not used for presence broadcast, e.g., MUC presences.

This caused the EntityCaps integration test (localEntityCaps) to fail
if the MUC integration test was run before.
This commit is contained in:
Florian Schmaus 2016-12-23 23:35:52 +01:00
parent ca394838f0
commit ecf1ed7f6b
3 changed files with 45 additions and 1 deletions

View file

@ -340,7 +340,7 @@ public final class EntityCapsManager extends Manager {
public void processPacket(Stanza packet) {
presenceSend = (Presence) packet;
}
}, PresenceTypeFilter.AVAILABLE);
}, PresenceTypeFilter.OUTGOING_PRESENCE_BROADCAST);
// Intercept presence packages and add caps data when intended.
// XEP-0115 specifies that a client SHOULD include entity capabilities