summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-06 12:50:52 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-06 12:50:52 +0300
commitabcf85f5475d62c7df49746c9d6d3f1b8ecae163 (patch)
treee392d5a2f19952e055600bdd458eedeb09dd9df8 /plugins/Msg_Export
parentc3bb3ccbcb43945028586e960773a0f43dbb7a18 (diff)
Chat_Find(MCONTACT) - new useful helper
Diffstat (limited to 'plugins/Msg_Export')
-rw-r--r--plugins/Msg_Export/src/utils.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index 1c819d20de..c30c32a62b 100644
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -642,12 +642,10 @@ static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, const wstring &sF
else {
sLocalUser = ptrW(GetMyOwnNick(hContact));
sRemoteUser = Clist_GetContactDisplayName(hContact);
- if (dbei.szUserId && Contact::IsGroupChat(hContact)) {
- ptrW contactId(Contact::GetInfo(CNF_UNIQUEID, hContact, szProto));
- if (auto *si = Chat_Find(contactId, szProto))
+ if (dbei.szUserId && Contact::IsGroupChat(hContact))
+ if (auto *si = Chat_Find(hContact, szProto))
if (auto *pUser = g_chatApi.UM_FindUser(si, Utf2T(dbei.szUserId)))
sRemoteUser = pUser->pszNick;
- }
nFirstColumnWidth = max(sRemoteUser.size(), clFileTo1ColWidth[sFilePath]);
nFirstColumnWidth = max(sLocalUser.size(), nFirstColumnWidth);