imservices/instantmessagingcache/imcacheserver/src/cimcachesession.cpp
branchRCL_3
changeset 38 2ca0d29c17c4
parent 25 cfe5eb8bb9ca
child 42 cfd5c2994f10
--- a/imservices/instantmessagingcache/imcacheserver/src/cimcachesession.cpp	Wed Jun 09 10:02:05 2010 +0300
+++ b/imservices/instantmessagingcache/imcacheserver/src/cimcachesession.cpp	Mon Jun 21 16:01:18 2010 +0300
@@ -241,7 +241,14 @@
 			if( iPacketsArray.Count() )
 				{
 				CIMCacheBufferArray* packet = iPacketsArray[ 0 ] ;
-				iObserverMessage.Complete( packet->OperationCode() );
+				if( packet->OperationCode() ==  EIMOperationFetchAll )
+					{
+					iObserverMessage.Complete( EIMOperationDataAvailable );
+					}
+				else
+					{
+					iObserverMessage.Complete( packet->OperationCode() );
+					}
 				iObserverActive = EFalse;
 				}
 			
@@ -278,7 +285,14 @@
 			 if( iPacketsArray.Count() )
 				{
 				CIMCacheBufferArray* packet = iPacketsArray[ 0 ] ;
-				iObserverMessage.Complete( packet->OperationCode() );
+				if( packet->OperationCode() ==  EIMOperationFetchAll )
+					{
+					iObserverMessage.Complete( EIMOperationUnreadChange );
+					}
+				else
+					{
+					iObserverMessage.Complete( packet->OperationCode() );
+					}
 				iObserverActive = EFalse;
 				}
 	     	break;