--- 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;