TizenRefApp-6873 Thread list isn't opened from message sending failed notifications 13/85013/2
authorOleksander Kostenko <o.kostenko@samsung.com>
Tue, 23 Aug 2016 08:50:57 +0000 (11:50 +0300)
committerAndrey Klimenko <and.klimenko@samsung.com>
Thu, 25 Aug 2016 14:16:00 +0000 (07:16 -0700)
Change-Id: I209c6506660505b5255779024d83e8e4fd15e8a4
Signed-off-by: Oleksander Kostenko <o.kostenko@samsung.com>
src/Common/AppControl/inc/AppControlDefault.h
src/Common/AppControl/src/AppControlDefault.cpp
src/Conversation/Main/Controller/src/Conversation.cpp

index b8f3fda..b2f47d3 100644 (file)
@@ -38,7 +38,8 @@ namespace Msg
                 MainType, //Type from home screen
                 ReplyType, //Type for reply message button clicked
                 ViewType, //Type for view message button clicked
-                NotificationType //Type from notification panel
+                NotificationType, //Type from notification panel
+                SendFailedType //Send failed message type
             };
 
         public:
index 4f26e6d..5f58f6e 100644 (file)
@@ -66,8 +66,10 @@ void AppControlDefault::parse(app_control_h handle)
     free(key);
     if(type == valueReply)
         m_DefaultType = ReplyType;
-    else if(type == valueNewMsg || type == valueSendFailed)
+    else if(type == valueNewMsg)
         viewMessage(handle);
+    else if(type == valueSendFailed)
+        m_DefaultType = SendFailedType;
     else
         MSG_LOG("Unknown type!");
 
index cc45477..98661b2 100644 (file)
@@ -130,6 +130,12 @@ void Conversation::execCmd(const AppControlDefaultRef &cmd)
         saveDraftMsg();
     }
 
+    if(cmd->getDefaultType() == AppControlDefault::SendFailedType)
+    {
+        pop();
+        return;
+    }
+
     if(cmd->getDefaultType() == AppControlDefault::NotificationType && getMsgEngine().getStorage().getUnreadThreadCount() > 1)
     {
         pop();