Skip to content

Commit

Permalink
feat: Don't forget to create a new Thread if we receive a snoozed Mes…
Browse files Browse the repository at this point in the history
…sage for the 1st time
  • Loading branch information
KevinBoulongne committed Mar 7, 2025
1 parent f6a60cb commit 141b7e7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ val snoozeRefreshStrategy = object : DefaultRefreshStrategy {

val updatedMessage = MessageController.upsertMessage(remoteMessage, realm)

impactedThreadsManaged += updatedMessage.threads
if (updatedMessage.threads.find { it.folderId == updatedMessage.folderId } == null) {
super.handleAddedMessage(scope, updatedMessage, isConversationMode, impactedThreadsManaged, realm)
} else {
impactedThreadsManaged += updatedMessage.threads
}
}
}

0 comments on commit 141b7e7

Please sign in to comment.