From 5b733fa5ff9ce06f19e6084c7a8d64013686eae6 Mon Sep 17 00:00:00 2001 From: Dan Keenan Date: Sat, 19 Feb 2022 16:25:42 -0500 Subject: [PATCH] Always set the class when creating groups. --- src/Group.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Group.cpp b/src/Group.cpp index 74c50b6..86f82d7 100644 --- a/src/Group.cpp +++ b/src/Group.cpp @@ -267,10 +267,7 @@ nlohmann::json CreateGroup::getRequest() const { result["name"] = name; } - if (!roomType.empty()) - { - result["class"] = roomType; - } + result["class"] = roomType.empty() ? "Other" : roomType; return result; } -- libgit2 0.21.4