Rename Empty -> IsEmpty in Room
parent
42547f8907
commit
2f81a20221
|
@ -40,7 +40,7 @@ public class LeaveRoomRequestHandler : IRequestHandler<LeaveRoomRequest, Room>
|
||||||
var requestConnectionId = request.ConnectionId;
|
var requestConnectionId = request.ConnectionId;
|
||||||
room.RemoveUser(requestConnectionId);
|
room.RemoveUser(requestConnectionId);
|
||||||
|
|
||||||
if (room.Empty())
|
if (room.IsEmpty())
|
||||||
{
|
{
|
||||||
_dbContext.Rooms.Remove(room);
|
_dbContext.Rooms.Remove(room);
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class Room
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Empty()
|
public bool IsEmpty()
|
||||||
{
|
{
|
||||||
return Users.Count == 0;
|
return Users.Count == 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue