Skip to content

Commit

Permalink
fix(messagelist): Clear message selection after user action
Browse files Browse the repository at this point in the history
  • Loading branch information
castaway committed Jan 14, 2025
1 parent 3c72817 commit 97d00c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,10 @@ export class AppComponent implements OnInit, AfterViewInit, CanvasTableSelectLis
this.searchService.moveMessagesToFolder(msgIds, folderPath);
}
this.messagelistservice.moveMessages(msgIds, folderPath);
this.clearSelection();
if(this.singlemailviewer && this.singlemailviewer.messageId && messageIds.includes(this.singlemailviewer.messageId)) {
this.singlemailviewer.close();
}
},
updateRemote: (msgIds: number[]) => {
const userFolders = this.messagelistservice.folderListSubject.value;
Expand Down Expand Up @@ -1128,7 +1132,9 @@ export class AppComponent implements OnInit, AfterViewInit, CanvasTableSelectLis
}
this.messagelistservice.moveMessages(msgIds, folderPath);
this.clearSelection();
this.canvastable.rows.clearOpenedRow();
if(this.singlemailviewer && this.singlemailviewer.messageId && messageIds.includes(this.singlemailviewer.messageId)) {
this.singlemailviewer.close();
}
},
updateRemote: (msgIds: number[]) => {
const userFolders = this.messagelistservice.folderListSubject.value;
Expand Down

0 comments on commit 97d00c0

Please sign in to comment.