messagingapp/msgappfw/server/src/ccsconversationcachehelper.cpp
changeset 44 36f374c67aa8
parent 43 35b64624a9e7
child 47 5b14749788d7
child 52 12db4185673b
--- a/messagingapp/msgappfw/server/src/ccsconversationcachehelper.cpp	Wed Jun 23 18:09:17 2010 +0300
+++ b/messagingapp/msgappfw/server/src/ccsconversationcachehelper.cpp	Tue Jul 06 14:12:40 2010 +0300
@@ -523,13 +523,17 @@
             }
 
             // Notify client of conversation change
-            CCsClientConversation
-                    * clientConv =
-                            iConversationCache->CreateClientConvLC(conversation,
-                                                                   aConversationEntry);
-            iConversationCache->NotifyL(clientConv,
-                                        KConversationEventDelete);
-            CleanupStack::PopAndDestroy(clientConv);
+            if (!conversation->IsDeleted())
+            {
+                CCsClientConversation
+                        * clientConv =
+                                iConversationCache->CreateClientConvLC(conversation,
+                                                                       aConversationEntry);
+                iConversationCache->NotifyL(clientConv,
+                                            KConversationEventDelete);
+                CleanupStack::PopAndDestroy(clientConv);
+            }
+
             // check if all entries are deleted then 
             // delete the conversation from cache
             if (conversation->GetEntryCount() == 0