diff --git a/backend/src/Modules/Conversations/Application/Chats/LeaveOrDelete/LeaveOrDeleteChat.cs b/backend/src/Modules/Conversations/Application/Chats/LeaveOrDelete/LeaveOrDeleteChat.cs index 59e79a5..aadf4a8 100644 --- a/backend/src/Modules/Conversations/Application/Chats/LeaveOrDelete/LeaveOrDeleteChat.cs +++ b/backend/src/Modules/Conversations/Application/Chats/LeaveOrDelete/LeaveOrDeleteChat.cs @@ -4,6 +4,7 @@ using System.Threading; using System.Threading.Tasks; using Knot.Contracts.Conversations.Application.Abstractions; using Knot.Contracts.Conversations.Domain; +using Knot.Contracts.Messaging.Application.Abstractions; using Knot.Modules.Conversations.Infrastructure.SignalR; using Knot.Shared.Kernel; using Knot.Shared.Kernel.Storage; diff --git a/client-web/src/core/infrastructure/i18n.ts b/client-web/src/core/infrastructure/i18n.ts index 547d5d3..51982ca 100644 --- a/client-web/src/core/infrastructure/i18n.ts +++ b/client-web/src/core/infrastructure/i18n.ts @@ -194,7 +194,8 @@ const translations = { clearChatConfirm: 'Очистить историю чата для себя? Собеседник сохранит свою историю.', clearHistory: 'Очистить историю', clearHistoryConfirm: 'Очистить историю?', - deleteChatConfirm: 'Удалить чат? Это действие нельзя отменить.', + deleteChatConfirm: 'Удалить чат? Это действие нельзя отменить. Чат будет удалён у всех участников.', + deleteGroupChatConfirm: 'Удалить чат? Это действие нельзя отменить. Чат будет удалён у всех участников.', pinChat: 'Закрепить чат', unpinChat: 'Открепить чат', chatCleared: 'Очищено', @@ -574,7 +575,8 @@ 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', chatCleared: 'Chat cleared', diff --git a/client-web/src/core/presentation/layouts/GlobalNavBar.tsx b/client-web/src/core/presentation/layouts/GlobalNavBar.tsx index ad05e93..30128ce 100644 --- a/client-web/src/core/presentation/layouts/GlobalNavBar.tsx +++ b/client-web/src/core/presentation/layouts/GlobalNavBar.tsx @@ -17,7 +17,7 @@ export default function GlobalNavBar({ activeTab, onTabChange }: GlobalNavBarPro return (