diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-04 13:16:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-04 13:16:14 +0300 |
commit | 753974985ea1e5f468bbb084afa507352e87b46f (patch) | |
tree | 1d624f324ab11f0546cd47fa32c181754666dfd6 /src/core/stdmsg | |
parent | 9ee02952867845ab162c7ca7b2081cce638c93a9 (diff) |
StdMsg: entered strings are stored for group chats as well as for private chats
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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);
|