diff options
-rw-r--r-- | common/mail/threadindexer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/mail/threadindexer.cpp b/common/mail/threadindexer.cpp index 1401fc8..68f7af7 100644 --- a/common/mail/threadindexer.cpp +++ b/common/mail/threadindexer.cpp | |||
@@ -46,6 +46,11 @@ void ThreadIndexer::updateThreadingIndex(const QByteArray &identifier, const App | |||
46 | if (!parentThread.isEmpty()) { | 46 | if (!parentThread.isEmpty()) { |
47 | auto childThreadId = thread.first(); | 47 | auto childThreadId = thread.first(); |
48 | auto parentThreadId = parentThread.first(); | 48 | auto parentThreadId = parentThread.first(); |
49 | //Can happen if the message is already available locally. | ||
50 | if (childThreadId == parentThreadId) { | ||
51 | //Nothing to do | ||
52 | return; | ||
53 | } | ||
49 | SinkTrace() << "Merging child thread: " << childThreadId << " into parent thread: " << parentThreadId; | 54 | SinkTrace() << "Merging child thread: " << childThreadId << " into parent thread: " << parentThreadId; |
50 | 55 | ||
51 | //Ensure this mail ends up in the correct thread | 56 | //Ensure this mail ends up in the correct thread |