Правки
This commit is contained in:
@@ -575,7 +575,7 @@ const translations = {
|
|||||||
clearChatConfirm: 'Clear chat history for yourself? The other person will keep their history.',
|
clearChatConfirm: 'Clear chat history for yourself? The other person will keep their history.',
|
||||||
clearHistory: 'Clear history',
|
clearHistory: 'Clear history',
|
||||||
clearHistoryConfirm: '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.',
|
deleteGroupChatConfirm: 'Delete this chat? This action cannot be undone. The chat will be removed for all participants.',
|
||||||
pinChat: 'Pin chat',
|
pinChat: 'Pin chat',
|
||||||
unpinChat: 'Unpin chat',
|
unpinChat: 'Unpin chat',
|
||||||
|
|||||||
@@ -283,11 +283,7 @@ function ChatListItem({ chat, isActive }: ChatListItemProps) {
|
|||||||
|
|
||||||
<ConfirmModal
|
<ConfirmModal
|
||||||
open={showDeleteConfirm}
|
open={showDeleteConfirm}
|
||||||
message={
|
message={isFavorites ? t('clearHistoryConfirm') : t('deleteChatConfirm')}
|
||||||
isFavorites ? t('clearHistoryConfirm') :
|
|
||||||
chat.type === 'group' ? t('deleteGroupChatConfirm') :
|
|
||||||
t('deleteChatConfirm')
|
|
||||||
}
|
|
||||||
onConfirm={confirmDelete}
|
onConfirm={confirmDelete}
|
||||||
onCancel={() => setShowDeleteConfirm(false)}
|
onCancel={() => setShowDeleteConfirm(false)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1060,7 +1060,7 @@ export default function ChatView({ onStartCall, onStartGroupCall }: { onStartCal
|
|||||||
setShowTopMenu(false);
|
setShowTopMenu(false);
|
||||||
if (activeChat) {
|
if (activeChat) {
|
||||||
setConfirmAction({
|
setConfirmAction({
|
||||||
message: chat.type === 'group' ? t('deleteGroupChatConfirm') : t('deleteChatConfirm'),
|
message: t('deleteChatConfirm'),
|
||||||
action: async () => {
|
action: async () => {
|
||||||
try {
|
try {
|
||||||
await ChatApi.deleteChat(activeChat);
|
await ChatApi.deleteChat(activeChat);
|
||||||
|
|||||||
Reference in New Issue
Block a user