From 10126b8ab2d030c8789525edcc87ff1c7c5b3e54 Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Mon, 19 Dec 2016 17:32:21 +0300
Subject: unused parameter removed

---
 src/mir_app/src/chat_clist.cpp | 2 +-
 src/mir_app/src/chat_svc.cpp   | 4 +---
 src/mir_app/src/chat_tools.cpp | 2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)

(limited to 'src/mir_app')

diff --git a/src/mir_app/src/chat_clist.cpp b/src/mir_app/src/chat_clist.cpp
index 27268d8a8d..93346dd334 100644
--- a/src/mir_app/src/chat_clist.cpp
+++ b/src/mir_app/src/chat_clist.cpp
@@ -121,7 +121,7 @@ int RoomDoubleclicked(WPARAM hContact, LPARAM)
 			PostMessage(si->hWnd, GC_CLOSEWINDOW, 0, 0);
 			return 1;
 		}
-		chatApi.ShowRoom(si, WINDOW_VISIBLE, TRUE);
+		chatApi.ShowRoom(si);
 	}
 	return 1;
 }
diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp
index edd6dab94e..6181e50b9c 100644
--- a/src/mir_app/src/chat_svc.cpp
+++ b/src/mir_app/src/chat_svc.cpp
@@ -299,8 +299,6 @@ static INT_PTR __stdcall stubRoomControl(void *param)
 		if (SESSION_INFO *si = chatApi.SM_FindSession(p->wszId, p->szModule)) {
 			SetInitDone(si);
 			chatApi.SetActiveSession(si->ptszID, si->pszModule);
-			if (si->hWnd)
-				chatApi.ShowRoom(si, p->command, FALSE);
 		}
 		return 0;
 
@@ -311,7 +309,7 @@ static INT_PTR __stdcall stubRoomControl(void *param)
 		if (SESSION_INFO *si = chatApi.SM_FindSession(p->wszId, p->szModule)) {
 			SetInitDone(si);
 			if (p->command != SESSION_INITDONE || db_get_b(NULL, CHAT_MODULE, "PopupOnJoin", 0) == 0)
-				chatApi.ShowRoom(si, p->command, TRUE);
+				chatApi.ShowRoom(si);
 			return 0;
 		}
 		break;
diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp
index 566e1c07e7..92031d6a4a 100644
--- a/src/mir_app/src/chat_tools.cpp
+++ b/src/mir_app/src/chat_tools.cpp
@@ -133,7 +133,7 @@ BOOL DoTrayIcon(SESSION_INFO *si, GCEVENT *gce)
 static void __stdcall ShowRoomFromPopup(void *pi)
 {
 	SESSION_INFO *si = (SESSION_INFO*)pi;
-	chatApi.ShowRoom(si, WINDOW_VISIBLE, TRUE);
+	chatApi.ShowRoom(si);
 }
 
 static LRESULT CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
-- 
cgit v1.2.3