Правки

This commit is contained in:
Халимов Рустам
2026-04-20 22:58:23 +03:00
parent 7eea8ff6d1
commit 9bfc5555bc
3 changed files with 3 additions and 7 deletions

View File

@@ -575,7 +575,7 @@ const translations = {
clearChatConfirm: 'Clear chat history for yourself? The other person will keep their history.',
clearHistory: 'Clear history',
clearHistoryConfirm: 'Clear history?',
deleteChatConfirm: 'Delete this chat? This action cannot be undone.',
deleteChatConfirm: 'Delete this chat? This action cannot be undone. The chat will be removed for all participants.',
deleteGroupChatConfirm: 'Delete this chat? This action cannot be undone. The chat will be removed for all participants.',
pinChat: 'Pin chat',
unpinChat: 'Unpin chat',

View File

@@ -283,11 +283,7 @@ function ChatListItem({ chat, isActive }: ChatListItemProps) {
<ConfirmModal
open={showDeleteConfirm}
message={
isFavorites ? t('clearHistoryConfirm') :
chat.type === 'group' ? t('deleteGroupChatConfirm') :
t('deleteChatConfirm')
}
message={isFavorites ? t('clearHistoryConfirm') : t('deleteChatConfirm')}
onConfirm={confirmDelete}
onCancel={() => setShowDeleteConfirm(false)}
/>

View File

@@ -1060,7 +1060,7 @@ export default function ChatView({ onStartCall, onStartGroupCall }: { onStartCal
setShowTopMenu(false);
if (activeChat) {
setConfirmAction({
message: chat.type === 'group' ? t('deleteGroupChatConfirm') : t('deleteChatConfirm'),
message: t('deleteChatConfirm'),
action: async () => {
try {
await ChatApi.deleteChat(activeChat);