diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-06 12:50:52 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-06 12:50:52 +0300 |
commit | abcf85f5475d62c7df49746c9d6d3f1b8ecae163 (patch) | |
tree | e392d5a2f19952e055600bdd458eedeb09dd9df8 /plugins/Msg_Export/src | |
parent | c3bb3ccbcb43945028586e960773a0f43dbb7a18 (diff) |
Chat_Find(MCONTACT) - new useful helper
Diffstat (limited to 'plugins/Msg_Export/src')
-rw-r--r-- | plugins/Msg_Export/src/utils.cpp | 6 |
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);
|