Фикс краша при попытке ответить на системное сообщение
This commit is contained in:
@@ -229,6 +229,12 @@ export function DialogInput() {
|
||||
}
|
||||
|
||||
const onPaste = async (event: React.ClipboardEvent) => {
|
||||
if(systemAccounts.find((acc) => acc.publicKey == dialog)){
|
||||
/**
|
||||
* У системных аккаунтов нельзя вызывать вложения
|
||||
*/
|
||||
return;
|
||||
}
|
||||
if(attachments.length >= MAX_ATTACHMENTS_IN_MESSAGE){
|
||||
return;
|
||||
}
|
||||
@@ -249,7 +255,9 @@ export function DialogInput() {
|
||||
preview: await base64ImageToBlurhash(base64Image)
|
||||
}]);
|
||||
}
|
||||
editableDivRef.current.focus();
|
||||
if(editableDivRef.current){
|
||||
editableDivRef.current.focus();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user