diff --git a/lib/common/src/version.h b/lib/common/src/version.h index a167d08c..8733ec10 100644 --- a/lib/common/src/version.h +++ b/lib/common/src/version.h @@ -7,4 +7,4 @@ #pragma once -#define NCHAT_VERSION "5.5.4" +#define NCHAT_VERSION "5.5.5" diff --git a/src/nchat.1 b/src/nchat.1 index 16013121..9a11a3f6 100644 --- a/src/nchat.1 +++ b/src/nchat.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man. -.TH NCHAT "1" "January 2025" "nchat 5.5.4" "User Commands" +.TH NCHAT "1" "January 2025" "nchat 5.5.5" "User Commands" .SH NAME nchat \- ncurses chat .SH SYNOPSIS diff --git a/src/uichatlistdialog.cpp b/src/uichatlistdialog.cpp index bfcb1af4..a55112b2 100644 --- a/src/uichatlistdialog.cpp +++ b/src/uichatlistdialog.cpp @@ -1,6 +1,6 @@ // uichatlistdialog.cpp // -// Copyright (c) 2024 Kristofer Berggren +// Copyright (c) 2024-2025 Kristofer Berggren // All rights reserved. // // nchat is distributed under the MIT license, see LICENSE for details. @@ -51,6 +51,8 @@ bool UiChatListDialog::OnTimer() void UiChatListDialog::UpdateList() { + const bool emojiEnabled = m_Model->GetEmojiEnabled(); + m_Index = 0; m_Items.clear(); m_ChatListItemVec.clear(); @@ -73,6 +75,11 @@ void UiChatListDialog::UpdateList() std::string displayName = name + (isMultipleProfiles ? " @ " + m_Model->GetProfileDisplayName(profileId) : ""); + if (!emojiEnabled) + { + displayName = StrUtil::Textize(displayName); + } + static const bool developerMode = AppUtil::GetDeveloperMode(); if (developerMode) { diff --git a/src/uicontactlistdialog.cpp b/src/uicontactlistdialog.cpp index 74eac556..6994d63f 100644 --- a/src/uicontactlistdialog.cpp +++ b/src/uicontactlistdialog.cpp @@ -1,6 +1,6 @@ // uicontactlistdialog.cpp // -// Copyright (c) 2019-2024 Kristofer Berggren +// Copyright (c) 2019-2025 Kristofer Berggren // All rights reserved. // // nchat is distributed under the MIT license, see LICENSE for details. @@ -70,6 +70,8 @@ void UiContactListDialog::UpdateList() m_DialogContactInfos = m_Model->GetContactInfos(); } + const bool emojiEnabled = m_Model->GetEmojiEnabled(); + m_Index = 0; m_Items.clear(); m_ContactListItemVec.clear(); @@ -94,6 +96,11 @@ void UiContactListDialog::UpdateList() std::string displayName = name + (isMultipleProfiles ? " @ " + m_Model->GetProfileDisplayName(profileId) : ""); + if (!emojiEnabled) + { + displayName = StrUtil::Textize(displayName); + } + static const bool developerMode = AppUtil::GetDeveloperMode(); if (developerMode) {