diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/contacts.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/contacts.cpp b/src/mir_app/src/contacts.cpp index 376735f87e..55f55b5bff 100644 --- a/src/mir_app/src/contacts.cpp +++ b/src/mir_app/src/contacts.cpp @@ -78,7 +78,9 @@ MIR_APP_DLL(wchar_t*) Contact::GetInfo(int type, MCONTACT hContact, const char * return nullptr;
if (szProto == nullptr)
- szProto = Proto_GetBaseAccountName(hContact);
+ if (auto *pa = Proto_GetContactAccount(hContact))
+ szProto = pa->szModuleName;
+
if (szProto == nullptr)
return nullptr;
|