diff --git a/assets/HypertextPages/chatSettings.nytl.html b/assets/HypertextPages/chatSettings.nytl.html
new file mode 100644
index 0000000..6f05544
--- /dev/null
+++ b/assets/HypertextPages/chatSettings.nytl.html
@@ -0,0 +1,47 @@
+{% ELDEF main JSON pres JSON userinfo %}
+
+
+
+
+
+
+ Настройки комнаты
+
+
+
+
+
+
+ - Участник 1
+ - Участник 2
+ - Участник 3
+
+
+
+
+
+
+
+
+
+
+
+{% ENDELDEF%}
\ No newline at end of file
diff --git a/assets/css/chatSettings.css b/assets/css/chatSettings.css
new file mode 100644
index 0000000..31c56ba
--- /dev/null
+++ b/assets/css/chatSettings.css
@@ -0,0 +1,148 @@
+body {
+ font-family: Arial, sans-serif;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ margin: 0;
+ background-color: #e5e5e5;
+}
+
+.chat-settings-container {
+ width: 100%;
+ max-width: 800px;
+ background-color: white;
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
+ display: flex;
+ flex-direction: column;
+ border-radius: 8px;
+ overflow: hidden;
+}
+
+.chat-settings-container-header {
+ background-color: #007bb5;
+ color: white;
+ padding: 25px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.room-name {
+ font-size: 24px;
+ width: 80%;
+ text-align: center;
+ border-radius: 10px;
+ border: none;
+}
+.changeName {
+ padding: 8px 10px;
+ background-color: #28a745;
+ color: white;
+ border-radius: 20px;
+ border: none;
+}
+.chat-settings-container-body {
+ padding: 15px;
+ background-color: #f7f7f7;
+ flex: 1;
+}
+
+#chat-settings-container-body {
+ list-style-type: none;
+ padding: 0;
+}
+
+#chat-settings-container-body li {
+ margin-bottom: 10px;
+ background-color: white;
+ padding: 10px;
+ border-radius: 8px;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
+}
+
+.chat-settings-container-invite {
+ padding: 15px;
+ background-color: white;
+ text-align: center;
+}
+
+.invite-member {
+ padding: 10px 20px;
+ border: none;
+ background-color: #28a745;
+ color: white;
+ border-radius: 20px;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+}
+
+.invite-member:hover {
+ background-color: #218838;
+}
+
+.overlay {
+ display: none;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.5);
+ justify-content: center;
+ align-items: center;
+ z-index: 1000;
+}
+
+.add-members {
+ background-color: white;
+ padding: 30px;
+ border-radius: 8px;
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
+ width: 100%;
+ max-width: 400px;
+ text-align: center;
+}
+
+.add-members-header {
+ position: relative;
+ margin-bottom: 20px;
+}
+
+.add-members-header h2 {
+ margin: 0;
+}
+
+.close {
+ position: absolute;
+ right: 10px;
+ top: 0;
+ font-size: 24px;
+ font-weight: bold;
+ cursor: pointer;
+}
+
+.add-members-body input {
+ width: 95%;
+ padding: 10px;
+ margin-bottom: 20px;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ margin-right: 15%;
+ outline: none;
+}
+
+.add-member-button {
+ padding: 10px 20px;
+ border: none;
+ background-color: #007bb5;
+ color: white;
+ border-radius: 20px;
+ cursor: pointer;
+ outline: none;
+ transition: background-color 0.3s ease;
+}
+
+.add-member-button:hover {
+ background-color: #005f8c;
+}
\ No newline at end of file
diff --git a/assets/css/login.css b/assets/css/login.css
index b42c992..83c4180 100644
--- a/assets/css/login.css
+++ b/assets/css/login.css
@@ -70,7 +70,7 @@ button:focus-visible {
}
div {
- color: red;
+ color: green;
font-size: 15px;
margin-top: 10px;
display: none;
diff --git a/assets/js/chatSettings.js b/assets/js/chatSettings.js
new file mode 100644
index 0000000..aa174d5
--- /dev/null
+++ b/assets/js/chatSettings.js
@@ -0,0 +1,18 @@
+function openInvite() {
+ document.getElementById("add_members").style.display = "flex";
+}
+
+function closeAdd() {
+ document.getElementById("add_members").style.display = "none";
+}
+
+function addMember() {
+ const login = document.getElementById("newMemberLogin").value;
+ if (login) {
+ const list = document.getElementById("chat-settings-container-body");
+ const listItem = document.createElement("li");
+ listItem.textContent = login;
+ list.appendChild(listItem);
+ closeAdd();
+ }
+}
\ No newline at end of file
diff --git a/src/web_chat/iu9_ca_web_chat_lib/sqlite3_wrapper.cpp b/src/web_chat/iu9_ca_web_chat_lib/sqlite3_wrapper.cpp
index 55f150c..f69983b 100644
--- a/src/web_chat/iu9_ca_web_chat_lib/sqlite3_wrapper.cpp
+++ b/src/web_chat/iu9_ca_web_chat_lib/sqlite3_wrapper.cpp
@@ -76,7 +76,7 @@ namespace iu9cawebchat {
int ret = sqlite3_prepare_v2(connection.hand, req_statement.c_str(), -1, &stmt_obj, NULL);
if (ret != 0) {
- int err_pos = sqlite3_error_offset(connection.hand);
+ int err_pos = -1;
een9_THROW("Compilation of request\n" + req_statement + "\nfailed" +
((err_pos >= 0) ? " with offset " + std::to_string(err_pos) : ""));
}