1
0
Fork 0
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:
Guus der Kinderen 2024-09-05 15:12:28 +02:00
parent 38c6dd21b4
commit 93efdf3eda
2 changed files with 56 additions and 3 deletions

View file

@ -292,6 +292,7 @@ public class MultiUserChat {
for (UserStatusListener listener : userStatusListeners) {
listener.roomDestroyed(alternateMuc, destroy.getPassword(), destroy.getReason());
}
userHasLeft();
}
if (isUserStatusModification) {