mirror of
https://github.com/SWG-Source/stationapi.git
synced 2026-01-15 22:04:17 -05:00
No need to remove the avatars from the room like this, it doesn't make a difference in terms of client side functionality and it serves no utility purpose
This commit is contained in:
@@ -229,12 +229,6 @@ DestroyRoom::DestroyRoom(GatewayClient* client, const RequestType& request, Resp
|
||||
|
||||
response.roomId = roomId;
|
||||
|
||||
for (auto roomAvatar : room->GetAvatars()) {
|
||||
auto roomAddresses = room->GetConnectedAddresses();
|
||||
room->LeaveRoom(roomAvatar);
|
||||
client->SendLeaveRoomUpdate(roomAddresses, roomAvatar->GetAvatarId(), roomId);
|
||||
}
|
||||
|
||||
roomService_->DestroyRoom(room);
|
||||
|
||||
client->SendDestroyRoomUpdate(srcAvatar, roomId, addresses);
|
||||
|
||||
Reference in New Issue
Block a user