fix: guard threadEmails.last against empty list (#343)

This commit was merged in pull request #343.
This commit is contained in:
Bot of Thomas Güttler
2026-06-01 21:47:47 +02:00
parent 71ec760365
commit c6e7c035f2
@@ -156,6 +156,7 @@ class EmailRepositoryImpl implements EmailRepository {
return; return;
} }
if (threadEmails.isEmpty) return;
final latest = threadEmails.last; final latest = threadEmails.last;
// Collect unique participants across the whole thread. // Collect unique participants across the whole thread.