From 81c4c58099694dec4a7234b6c6028d478f08262f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 Sep 2024 15:55:30 +0300 Subject: fixes #4686 (tabSRMM: group chat windows to use the same activation options like the private chats do) --- src/mir_app/src/chat_clist.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/chat_clist.cpp b/src/mir_app/src/chat_clist.cpp index e01f1291ff..7c84b57d28 100644 --- a/src/mir_app/src/chat_clist.cpp +++ b/src/mir_app/src/chat_clist.cpp @@ -127,11 +127,7 @@ int RoomDoubleclicked(WPARAM hContact, LPARAM) if (!Contact::IsGroupChat(hContact, szProto)) return 0; - ptrW roomid(Contact::GetInfo(CNF_UNIQUEID, hContact, szProto)); - if (roomid == nullptr) - return 0; - - SESSION_INFO *si = Chat_Find(roomid, szProto); + SESSION_INFO *si = Chat_Find(hContact, szProto); if (si) { if (si->pDlg != nullptr && !Clist_GetEvent(hContact, 0) && IsWindowVisible(si->pDlg->GetHwnd()) && !IsIconic(si->pDlg->GetHwnd())) { si->pDlg->CloseTab(); -- cgit v1.2.3