Update Room.java

This commit is contained in:
brenoepic 2022-03-06 02:22:05 +00:00
parent c7ed4a88c2
commit b28bf5f4ef

View File

@ -3962,6 +3962,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
return;
this.sendComposer(new RoomRemoveRightsListComposer(this, userId).compose());
if (this.rights.remove(userId)) {
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("DELETE FROM room_rights WHERE room_id = ? AND user_id = ?")) {
statement.setInt(1, this.id);