Compare commits
5 Commits
a19803fc63
...
1c8493b33f
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c8493b33f | |||
|
|
a9ce892ea2 | ||
|
|
fe418dabc9 | ||
|
|
1572f06ef4 | ||
| 6054be7f5c |
@@ -60,6 +60,7 @@ export function DialogInput() {
|
||||
useHotkeys([
|
||||
['Esc', () => {
|
||||
setAttachments([]);
|
||||
deselectAllMessages();
|
||||
}]
|
||||
], [], true);
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ export function MessageAttachments(props: MessageAttachmentsProps) {
|
||||
text: props.text,
|
||||
parent: props.parent,
|
||||
}
|
||||
console.info("Rendering attachment", attachProps);
|
||||
switch (att.type) {
|
||||
case AttachmentType.MESSAGES:
|
||||
return <MessageReplyMessages {...attachProps} key={index}></MessageReplyMessages>
|
||||
|
||||
@@ -213,7 +213,7 @@ export function Message(props: MessageProps) {
|
||||
userSelect: 'text',
|
||||
fontSize: '13px',
|
||||
color: messageStyle == MessageStyle.BUBBLES ? (computedTheme == 'light' ? (props.parent?.from_me ? 'white' : 'black') : 'white') : (computedTheme == 'light' ? 'black' : 'white')
|
||||
}} ml={props.avatar_no_render ? 50 : undefined}>
|
||||
}} ml={props.avatar_no_render ? 50 : undefined} onDoubleClick={(e) => e.stopPropagation()}>
|
||||
<TextParser performanceEntityLimit={ENTITY_LIMITS_TO_PARSE_IN_MESSAGE} oversizeIfTextSmallerThan={1} text={props.message.trim()}></TextParser>
|
||||
</Box>
|
||||
</Flex>
|
||||
@@ -302,7 +302,7 @@ export function Message(props: MessageProps) {
|
||||
userSelect: 'text',
|
||||
fontSize: '14px',
|
||||
color: props.from_me ? 'white' : (computedTheme == 'light' ? 'black' : 'white')
|
||||
}}>
|
||||
}} onDoubleClick={(e) => e.stopPropagation()}>
|
||||
<TextParser __reserved_2 performanceEntityLimit={ENTITY_LIMITS_TO_PARSE_IN_MESSAGE} oversizeIfTextSmallerThan={1} text={props.message.trim()}></TextParser>
|
||||
</Box>
|
||||
)}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useRosettaColors } from "@/app/hooks/useRosettaColors";
|
||||
import { useReplyMessages } from "@/app/providers/DialogProvider/useReplyMessages";
|
||||
import { Button, Flex, Modal, Text } from "@mantine/core";
|
||||
import { useDisclosure, useHotkeys } from "@mantine/hooks";
|
||||
import { useDisclosure } from "@mantine/hooks";
|
||||
import { IconCornerUpLeft, IconCornerUpRightDouble, IconTrash, IconX } from "@tabler/icons-react";
|
||||
import classes from "./ReplyHeader.module.css";
|
||||
import { DialogsList } from "../DialogsList/DialogsList";
|
||||
@@ -19,10 +19,6 @@ export function ReplyHeader() {
|
||||
const [opened, { open, close }] = useDisclosure(false);
|
||||
const navigate = useNavigate();
|
||||
const {deleteSelectedMessages} = useDialog();
|
||||
|
||||
useHotkeys([
|
||||
['Esc', deselectAllMessages]
|
||||
], [], true);
|
||||
|
||||
const onClickForward = () => {
|
||||
open();
|
||||
|
||||
@@ -35,6 +35,7 @@ export function useReplyMessages() {
|
||||
const {dialog} = context;
|
||||
|
||||
const selectMessage = (message : MessageReply) => {
|
||||
console.info("-> ", replyMessages);
|
||||
console.info(message);
|
||||
if(replyMessages.publicKey != dialog){
|
||||
/**
|
||||
@@ -70,6 +71,7 @@ export function useReplyMessages() {
|
||||
}
|
||||
|
||||
const deselectAllMessages = () => {
|
||||
console.info("Deselecting all messages");
|
||||
setReplyMessages({
|
||||
publicKey: "",
|
||||
messages: []
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
export const APP_VERSION = "1.0.5";
|
||||
export const APP_VERSION = "1.0.6";
|
||||
export const CORE_MIN_REQUIRED_VERSION = "1.5.0";
|
||||
|
||||
export const RELEASE_NOTICE = `
|
||||
**Обновление v1.0.5** :emoji_1f631:
|
||||
- Оптимизирован код ядра
|
||||
- Исправление ошибки с системой обновления в результате гонки потоков в ядре
|
||||
- Исправление уведомлений при синхронизации
|
||||
- Анимация перемещения диалогов
|
||||
- Оптимизирован код вложений
|
||||
- Исправлен скролл при подгрузке сообщений сверху
|
||||
- Ускорена загрузка диалогов при большом количестве тяжелых изображений
|
||||
**Обновление v1.0.6** :emoji_1f631:
|
||||
- Исправлена очистка сообщения при нажатии ESC
|
||||
- При клике на текст в сообщении теперь сообщение не уходит в ответ
|
||||
`;
|
||||
Reference in New Issue
Block a user