--- a/serviceproviders/sapi_messaging/src/messaginginterface.cpp Tue Feb 02 00:45:40 2010 +0200
+++ b/serviceproviders/sapi_messaging/src/messaginginterface.cpp Fri Feb 19 23:43:21 2010 +0200
@@ -792,6 +792,7 @@
TInt pos = 0;
TBool indexBaseInp = ETrue;
+ TBool isToPresent = ETrue;
const TLiwGenericParam* inMessageType = aInParamList.FindFirst( pos, KMtm );
if ( inMessageType )
@@ -851,7 +852,7 @@
}
else
{
- AppendErrorMessageL( KCmdSendMessage, KRecipientTo, KMissing, 1 );
+ isToPresent = EFalse;
}
// Read BodyText
@@ -993,6 +994,11 @@
//this is an optional parameter so check for not null constraint, ignore this in case of NULL
if ( inMap->FindL( KLaunchEditor, inParam ) && CheckInputTypeL( &inParam, EFalse, LIW::EVariantTypeTBool, KCmdSendMessage, KLaunchEditor, KTypeInvalid ) )
{
+ if(!isToPresent && !(inParam.AsTBool()))
+ {
+ CleanupStack::PopAndDestroy( &inParam );
+ AppendErrorMessageL( KCmdSendMessage, KRecipientTo, KMissing, 1 );
+ }
sendParams->SetLaunchEditor( inParam.AsTBool() );
}