From 753974985ea1e5f468bbb084afa507352e87b46f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Sep 2019 13:16:14 +0300 Subject: StdMsg: entered strings are stored for group chats as well as for private chats --- src/core/stdmsg/src/msgdialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 60507a7a21..c60df8ca63 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -404,6 +404,10 @@ void CMsgDialog::onClick_Ok(CCtrlButton *pButton) CMStringW ptszText(ptrW(mir_utf8decodeW(msgText))); g_chatApi.DoRtfToTags(ptszText, 0, nullptr); ptszText.Trim(); + + m_cmdList.insert(mir_wstrdup(ptszText)); + m_cmdListInd = -1; + ptszText.Replace(L"%", L"%%"); if (m_si->pMI->bAckMsg) { @@ -426,8 +430,8 @@ void CMsgDialog::onClick_Ok(CCtrlButton *pButton) int sendId = SendMessageDirect(rtrimw(temp), m_hContact); if (sendId) { m_cmdList.insert(temp.detach()); - m_cmdListInd = -1; + if (m_nTypeMode == PROTOTYPE_SELFTYPING_ON) NotifyTyping(PROTOTYPE_SELFTYPING_OFF); -- cgit v1.2.3