instantmsgindicatorplugin/src/instantmsgindicatorpluginimplementation.cpp
branchRCL_3
changeset 14 9fdee5e1da30
parent 0 5e5d6b214f4f
--- a/instantmsgindicatorplugin/src/instantmsgindicatorpluginimplementation.cpp	Wed Mar 31 21:14:49 2010 +0300
+++ b/instantmsgindicatorplugin/src/instantmsgindicatorpluginimplementation.cpp	Wed Apr 14 15:46:18 2010 +0300
@@ -176,11 +176,17 @@
 //
  void CInstantMsgIndicatorPluginImplementation::MessageInfoL(TInt aNewMessages, TInt aSeriveId,
                                                          const TDesC& aSenderId ,
-                                                         TInt aMultipleSender)
+                                                         TInt aMultipleSender,
+                                                         TBool aCloseConversation /*= EFalse*/)
     {
     
     ShowIMIndicatorL(aNewMessages, aSeriveId,aSenderId, aMultipleSender);
-    PlayMsgToneL(aNewMessages,aSeriveId);
+    // this event is not from close conversation hence play the tone, 
+    // else do not play the tone.
+    if(!aCloseConversation)
+        {
+        PlayMsgToneL(aNewMessages,aSeriveId);
+        }
   	}
 
 //end of file