Disallow paste/drop images when there is a link preview

This commit is contained in:
Josh Perez 2022-01-21 16:46:05 -05:00 committed by GitHub
parent b9adee918f
commit 24c77b48bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -963,6 +963,10 @@ export class ConversationView extends window.Backbone.View<ConversationModel> {
// TODO DESKTOP-2426
async processAttachments(files: Array<File>): Promise<void> {
if (this.preview) {
return;
}
const {
addAttachment,
addPendingAttachment,