Skip to content

Commit

Permalink
disallow chat deletion when selecting message
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Apr 20, 2024
1 parent 082cb35 commit 84f293e
Show file tree
Hide file tree
Showing 3 changed files with 3 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 "4.63"
#define NCHAT_VERSION "4.64"
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" "April 2024" "nchat v4.63" "User Commands"
.TH NCHAT "1" "April 2024" "nchat v4.64" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion src/uimodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ void UiModel::DeleteChat()
{
std::unique_lock<std::mutex> lock(m_ModelMutex);

if (GetEditMessageActive()) return;
if (GetSelectMessageActive() || GetEditMessageActive()) return;

static const bool confirmDeletion = UiConfig::GetBool("confirm_deletion");
if (confirmDeletion)
Expand Down

0 comments on commit 84f293e

Please sign in to comment.