phonebookui/Phonebook2/ServerApplication/src/CPbk2FetchService.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 63 f4a778e096c2
--- a/phonebookui/Phonebook2/ServerApplication/src/CPbk2FetchService.cpp	Wed Sep 15 11:56:55 2010 +0300
+++ b/phonebookui/Phonebook2/ServerApplication/src/CPbk2FetchService.cpp	Wed Oct 13 14:15:33 2010 +0300
@@ -276,23 +276,13 @@
     TPckg<TBool> acceptedPkg( accepted );
     aMessage.ReadL( KAcceptServiceSlot, acceptedPkg );
 
-    if ( iUiService )
+    if ( iUiService && accepted )
         {
         HBufC8* buffer = HBufC8::NewLC(
             aMessage.GetDesMaxLengthL( KSelectedContactSlot ) );
         TPtr8 ptr = buffer->Des();
         aMessage.ReadL( KSelectedContactSlot, ptr );
-        
-        // If client accepts selected contact, call AcceptDelayedContacts
-        // Otherwise call DenyDelayedContactsL
-        if( accepted )
-            {
-            iUiService->AcceptDelayedContactsL( *buffer );
-            }
-        else
-            {
-            iUiService->DenyDelayedContactsL( *buffer );
-            }
+        iUiService->AcceptDelayedContactsL( *buffer );
         CleanupStack::PopAndDestroy(); // buffer
         }