messagingapp/msgappfw/server/src/ccsconversationcachehelper.cpp
changeset 44 36f374c67aa8
parent 43 35b64624a9e7
child 47 5b14749788d7
child 52 12db4185673b
equal deleted inserted replaced
43:35b64624a9e7 44:36f374c67aa8
   521                     CleanupStack::PopAndDestroy(clientConv);
   521                     CleanupStack::PopAndDestroy(clientConv);
   522                 }
   522                 }
   523             }
   523             }
   524 
   524 
   525             // Notify client of conversation change
   525             // Notify client of conversation change
   526             CCsClientConversation
   526             if (!conversation->IsDeleted())
   527                     * clientConv =
   527             {
   528                             iConversationCache->CreateClientConvLC(conversation,
   528                 CCsClientConversation
   529                                                                    aConversationEntry);
   529                         * clientConv =
   530             iConversationCache->NotifyL(clientConv,
   530                                 iConversationCache->CreateClientConvLC(conversation,
   531                                         KConversationEventDelete);
   531                                                                        aConversationEntry);
   532             CleanupStack::PopAndDestroy(clientConv);
   532                 iConversationCache->NotifyL(clientConv,
       
   533                                             KConversationEventDelete);
       
   534                 CleanupStack::PopAndDestroy(clientConv);
       
   535             }
       
   536 
   533             // check if all entries are deleted then 
   537             // check if all entries are deleted then 
   534             // delete the conversation from cache
   538             // delete the conversation from cache
   535             if (conversation->GetEntryCount() == 0
   539             if (conversation->GetEntryCount() == 0
   536                     && !conversation->IsSpecialConversation())
   540                     && !conversation->IsSpecialConversation())
   537             {
   541             {