mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 14:55:48 +00:00
Bugfix: error undefined msg.from[0]
This commit is contained in:
@@ -162,11 +162,11 @@ 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(),
|
||||
label: msg.from[0]?.toLine(),
|
||||
search: 'from=' + email,
|
||||
messages: []
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user