1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00

Fix MUCs UserStatusListener

use oldPresence instead of packet. This bug was introduced with
e6aa2416e4.

Fixes SMACK-693.
This commit is contained in:
Florian Schmaus 2015-08-17 12:34:24 +02:00
parent 8c6e56b122
commit 6b7f69b42f

View file

@ -169,7 +169,7 @@ public class MultiUserChat {
Presence oldPresence = occupantsMap.put(from, presence);
if (oldPresence != null) {
// Get the previous occupant's affiliation & role
MUCUser mucExtension = MUCUser.from(packet);
MUCUser mucExtension = MUCUser.from(oldPresence);
MUCAffiliation oldAffiliation = mucExtension.getItem().getAffiliation();
MUCRole oldRole = mucExtension.getItem().getRole();
// Get the new occupant's affiliation & role