Skip to content

Commit

Permalink
improved ui update on chat delete
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Sep 30, 2023
1 parent cdf8c0b commit 7ae82f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "3.77"
#define NCHAT_VERSION "3.78"
2 changes: 1 addition & 1 deletion src/nchat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NCHAT "1" "September 2023" "nchat v3.77" "User Commands"
.TH NCHAT "1" "September 2023" "nchat v3.78" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down
4 changes: 3 additions & 1 deletion src/uimodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1865,12 +1865,14 @@ void UiModel::MessageHandler(std::shared_ptr<ServiceMessage> p_ServiceMessage)
if ((m_CurrentChat.first == profileId) && (m_CurrentChat.second == chatId))
{
m_CurrentChat = m_ChatVec.at(NumUtil::Bound(0, m_CurrentChatIndex, ((int)m_ChatVec.size() - 1)));
SortChats();
OnCurrentChatChanged();
SetSelectMessageActive(false);
}
else
{
UpdateList();
SortChats();
OnCurrentChatChanged();
}
}
}
Expand Down

0 comments on commit 7ae82f1

Please sign in to comment.