Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for kolya #19

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 1 addition & 28 deletions ChatClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ void ChatClient::on_log_in_button_clicked()
{
if (!ui->login_nickname_edit->text().isEmpty() && !ui->login_password_edit->text().isEmpty()) {
client->login(ui->login_nickname_edit->text(), ui->login_password_edit->text());

//TODO delete. Just for time
//loggedIn({ "Niko",3, {} });
}
else
QMessageBox::information(this, "Warning", "Please input all fields");
Expand All @@ -121,30 +118,7 @@ void ChatClient::on_start_chatting_clicked() {
ui->text_edit->setPlaceholderText("Enter message text here");
ui->stackedWidget->setCurrentIndex(3);

auto listik = QVariantList{
QVariant::fromValue<chatItemPtr>
(
chatItemPtr{ new ChatItem(
1
, "Name_1"
, "Description_1"
, "Lable_1"
, false)
}
),
QVariant::fromValue<chatItemPtr>
(
chatItemPtr{ new ChatItem(
2
, "Name_2"
, "Description_2"
, "Lable_2"
, false)
}
)
};

Q_EMIT download_chats(listik);
client->roomListRequest();
}

void ChatClient::onSaveEditClicked() {
Expand Down Expand Up @@ -178,7 +152,6 @@ void ChatClient::onSaveEditClicked() {

void ChatClient::onChatClicked(qint32 chat_id_)
{
client->roomListRequest();
//client->setRoomNum(chat_id_);
//TODO send to server new current room

Expand Down