forked from Green-Sky/tomato
adjust for updated toxcore
This commit is contained in:
2
external/solanaceae_tox
vendored
2
external/solanaceae_tox
vendored
Submodule external/solanaceae_tox updated: d91ad4bfa9...dd7eb2702f
@ -142,7 +142,7 @@ void ToxUIUtils::render(void) {
|
|||||||
ImGui::InputText("password to join with", &password);
|
ImGui::InputText("password to join with", &password);
|
||||||
|
|
||||||
static Tox_Err_Group_Join err = Tox_Err_Group_Join::TOX_ERR_GROUP_JOIN_OK;
|
static Tox_Err_Group_Join err = Tox_Err_Group_Join::TOX_ERR_GROUP_JOIN_OK;
|
||||||
if (ImGui::Button("join")) {
|
if (ImGui::Button("join/reconnect")) {
|
||||||
auto [_, err_r] = _tc.toxGroupJoin(
|
auto [_, err_r] = _tc.toxGroupJoin(
|
||||||
hex2bin(std::string_view{_chat_id, std::size(_chat_id)-1}),
|
hex2bin(std::string_view{_chat_id, std::size(_chat_id)-1}),
|
||||||
self_name,
|
self_name,
|
||||||
@ -163,7 +163,7 @@ void ToxUIUtils::render(void) {
|
|||||||
}
|
}
|
||||||
if (err != Tox_Err_Group_Join::TOX_ERR_GROUP_JOIN_OK) {
|
if (err != Tox_Err_Group_Join::TOX_ERR_GROUP_JOIN_OK) {
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Text("error joining group (code: %d)", err);
|
ImGui::Text("error joining group '%s' (%d)", tox_err_group_join_to_string(err), err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
Reference in New Issue
Block a user