summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index d9fd2c3804..dd10c1934d 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -791,10 +791,12 @@ void CMsgDialog::onClick_Ok(CCtrlButton *)
if (decoded.IsEmpty())
return;
+ if (final_sendformat)
+ DoRtfToTags(decoded);
+ decoded.TrimRight();
+
if (isChat()) {
m_cache->saveHistory();
- DoRtfToTags(decoded);
- decoded.Trim();
if (m_si->pMI->bAckMsg) {
m_message.Enable(false);
@@ -820,10 +822,6 @@ void CMsgDialog::onClick_Ok(CCtrlButton *)
Skin_PlaySound("SendMsg");
}
else {
- if (final_sendformat)
- DoRtfToTags(decoded);
- decoded.TrimRight();
-
T2Utf utfResult(decoded);
size_t memRequired = mir_strlen(utfResult) + 1;