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
1 changed files with 1 additions and 1 deletions

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