Unseen is first sequence number of unseen message not count of messages

This commit is contained in:
Michal Horejsek
2020-04-06 10:54:14 +02:00
parent ea0f3115a3
commit c939893131
11 changed files with 33 additions and 23 deletions

View File

@ -93,7 +93,7 @@ func mailboxForAddressOfUserHasNumberOfMessages(mailboxName, bddAddressID, bddUs
start := time.Now()
for {
afterLimit := time.Since(start) > ctx.EventLoopTimeout()
total, _, _ := mailbox.GetCounts()
total, _, _, _ := mailbox.GetCounts()
if total == uint(countOfMessages) {
break
}