mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
[muc] State of MUC should reflect room destruction
After a room is destroyed, the MultiUserChat-stored representation of the 'join' state of any occupant should be updated to reflect that the user is no longer in the room. This fixes a problem where an occupant (that not itself triggered the destruction) appears to continue be part of a room after its destruction. Additional integration test assertions are added to check for the invalid state fixed by this commit. fixes SMACK-949
This commit is contained in:
parent
38c6dd21b4
commit
93efdf3eda
2 changed files with 56 additions and 3 deletions
|
@ -292,6 +292,7 @@ public class MultiUserChat {
|
|||
for (UserStatusListener listener : userStatusListeners) {
|
||||
listener.roomDestroyed(alternateMuc, destroy.getPassword(), destroy.getReason());
|
||||
}
|
||||
userHasLeft();
|
||||
}
|
||||
|
||||
if (isUserStatusModification) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue