void navigateToBottom();
void execCmd(const AppControlComposeRef &cmd);
void execCmd(const AppControlDefaultRef &cmd);
- void setThreadId(ThreadId id, const std::string &searchWord = std::string());
+ void setThreadId(ThreadId id, const std::string &searchWord = std::string(), bool updateConvList = true, bool updateRecipPanel = true);
void setListener(IConversationListener *listener);
void forwardMsg(MsgId id);
void navigateToSlideShow(MsgId id);
void setBodyFocus();
void setRecipEntryFocus();
- void resetMsgThread();
+ void resetMsgThread(bool updateConvList = true, bool updateRecipPanel = true);
void updateActiveNotifPolicy();
std::vector<MsgId> getMsgIdListForReadReport() const;
getMsgEngine().getSettings().setActiveNotifPolicy(threadId);
}
-void Conversation::setThreadId(ThreadId id, const std::string &searchWord)
+void Conversation::setThreadId(ThreadId id, const std::string &searchWord, bool updateConvList, bool updateRecipPanel)
{
MSG_LOG("Thread id = ", id);
m_ThreadId = id;
if(m_pBody)
m_pBody->setMmsRecipFlag(getMsgEngine().getStorage().hasEmail(m_ThreadId));
- if(m_pRecipPanel)
+ if(m_pRecipPanel && updateRecipPanel)
m_pRecipPanel->update(m_ThreadId);
- if(m_pConvList)
- m_pConvList->setThreadId(id, searchWord);
+ if(m_pConvList && updateConvList)
+ m_pConvList->setThreadId(m_ThreadId, searchWord);
markAsRead();
updateActiveNotifPolicy();
checkAndSetMsgType(true);
}
-void Conversation::resetMsgThread()
+void Conversation::resetMsgThread(bool updateConvList, bool updateRecipPanel)
{
m_IsMms = false;
m_DispIsMms = false;
ecore_idler_del(m_NnotifyConvertMsgTypeIdler);
m_NnotifyConvertMsgTypeIdler = nullptr;
}
- setThreadId(ThreadId());
+ setThreadId(ThreadId(), "", updateConvList, updateRecipPanel);
}
void Conversation::setListener(IConversationListener *listener)
void Conversation::createNewMsgThread()
{
MsgAddressListRef addressList = getAddressList();
- resetMsgThread();
+ resetMsgThread(false, true);
if(m_pRecipPanel)
m_pRecipPanel->update(addressList);
}