mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Improved EmailModel handling
This commit is contained in:
parent
57dc1d29b3
commit
e8c93a1d0c
2 changed files with 6 additions and 15 deletions
|
|
@ -162,12 +162,12 @@ export class MailMessageList extends AbstractViewRight {
|
|||
let list = [], current, sort = FolderUserStore.sortMode() || 'DATE';
|
||||
if (sort.includes('FROM')) {
|
||||
MessagelistUserStore.forEach(msg => {
|
||||
let email = msg.from?.[0].email;
|
||||
let email = msg.from[0].email;
|
||||
if (!current || email != current.id) {
|
||||
current = {
|
||||
id: email,
|
||||
label: msg.from[0].toLine(),
|
||||
search: 'from=' + msg.from[0].email,
|
||||
search: 'from=' + email,
|
||||
messages: []
|
||||
};
|
||||
list.push(current);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue