Speedup for #902

This commit is contained in:
the-djmaze 2023-02-03 12:12:40 +01:00
parent c6db5f1def
commit b182372b83
2 changed files with 3 additions and 2 deletions

View file

@ -426,7 +426,7 @@ export class MailMessageView extends AbstractViewRight {
registerShortcut('b', '', [Scope.MessageList, Scope.MessageView], () => {
const message = currentMessage();
if (message?.body) {
message.body.querySelectorAll('.sm-bq-switcher > summary').forEach(node => node.click());
message.body.querySelectorAll('details').forEach(node => node.open = !node.open);
return false;
}
});