A few bug fixes

This commit is contained in:
Scott Nonnenberg 2021-02-26 07:08:59 -08:00 committed by Josh Perez
parent 4b28fd896a
commit 2aa2aca9f2
6 changed files with 76 additions and 27 deletions

View file

@ -2803,11 +2803,7 @@ export class ConversationModel extends window.Backbone.Model<
return Promise.all(
attachments
.filter(
attachment =>
attachment &&
attachment.contentType &&
!attachment.pending &&
!attachment.error
attachment => attachment && !attachment.pending && !attachment.error
)
.slice(0, 1)
.map(async attachment => {