fix: guard threadEmails.last against empty list #343

Merged
guettlibot merged 1 commits from issue-341-guard-threademails-last into main 2026-06-01 19:47:49 +00:00
@@ -156,6 +156,7 @@ class EmailRepositoryImpl implements EmailRepository {
return;
}
if (threadEmails.isEmpty) return;
final latest = threadEmails.last;
// Collect unique participants across the whole thread.