File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -183,9 +183,9 @@ export interface IChatModel extends IDisposable {
183183 removeAttachment ?( attachment : IAttachment ) : void ;
184184
185185 /**
186- * Update attachments .
186+ * Clear the attachment list .
187187 */
188- updateAttachments ? ( attachments : IAttachment [ ] ) : void ;
188+ clearAttachments ? ( ) : void ;
189189
190190 /**
191191 * Open attachments.
@@ -586,9 +586,9 @@ export class ChatModel implements IChatModel {
586586 /**
587587 * Update attachments.
588588 */
589- updateAttachments = ( attachments : IAttachment [ ] ) : void => {
590- this . inputAttachments = [ ... attachments ] ;
591- this . _inputAttachmentsChanges . emit ( [ ... this . inputAttachments ] ) ;
589+ clearAttachments = ( ) : void => {
590+ this . inputAttachments = [ ] ;
591+ this . _inputAttachmentsChanges . emit ( [ ] ) ;
592592 } ;
593593
594594 /**
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export class LabChatModel extends ChatModel implements DocumentRegistry.IModel {
164164 this . sharedModel . setAttachment ( attachment )
165165 ) ;
166166 msg . attachments = attachmentIds ;
167- this . updateAttachments ( [ ] ) ;
167+ this . clearAttachments ( ) ;
168168 }
169169
170170 this . sharedModel . addMessage ( msg ) ;
You can’t perform that action at this time.
0 commit comments