From a40f1f72a0bf581b77ac3d2d348827d77195e24c Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Thu, 12 Sep 2019 17:05:38 +0300
Subject: Scriver: small crutch to disable IEView in group chats

---
 plugins/Scriver/src/msgdialog.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index b02f2e46e2..001a691927 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -230,7 +230,7 @@ bool CMsgDialog::OnInitDialog()
 	m_startTime = time(0);
 
 	m_bUseRtl = g_plugin.getByte(m_hContact, "UseRTL", 0) != 0;
-	m_bUseIEView = g_dat.ieviewInstalled ? g_dat.flags.bUseIeview : false;
+	m_bUseIEView = (g_dat.ieviewInstalled) ? g_dat.flags.bUseIeview && !m_si : false;
 
 	PARAFORMAT2 pf2;
 	memset(&pf2, 0, sizeof(pf2));
@@ -1306,7 +1306,7 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
 		break;
 
 	case DM_OPTIONSAPPLIED:
-		m_bUseIEView = g_dat.ieviewInstalled ? g_dat.flags.bUseIeview : false;
+		m_bUseIEView = (g_dat.ieviewInstalled) ? g_dat.flags.bUseIeview && !m_si : false;
 		if (m_bUseIEView && m_hwndIeview == nullptr) {
 			IEVIEWWINDOW ieWindow = { sizeof(ieWindow) };
 			ieWindow.iType = IEW_CREATE;
-- 
cgit v1.2.3