Commit 5b733fa5ff9ce06f19e6084c7a8d64013686eae6

Authored by Dan Keenan
Committed by Moritz Wirger
1 parent f05deeab

Always set the class when creating groups.

Showing 1 changed file with 1 additions and 4 deletions
src/Group.cpp
... ... @@ -267,10 +267,7 @@ nlohmann::json CreateGroup::getRequest() const
267 267 {
268 268 result["name"] = name;
269 269 }
270   - if (!roomType.empty())
271   - {
272   - result["class"] = roomType;
273   - }
  270 + result["class"] = roomType.empty() ? "Other" : roomType;
274 271 return result;
275 272 }
276 273  
... ...