diff options
Diffstat (limited to 'protocols/CloudFile/src/utils.cpp')
-rw-r--r-- | protocols/CloudFile/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/CloudFile/src/utils.cpp b/protocols/CloudFile/src/utils.cpp index 69a5c74a60..73e22ef7c0 100644 --- a/protocols/CloudFile/src/utils.cpp +++ b/protocols/CloudFile/src/utils.cpp @@ -67,8 +67,8 @@ void SendToContact(MCONTACT hContact, const wchar_t *data) { const char *szProto = Proto_GetBaseAccountName(hContact); if (Contact::IsGroupChat(hContact, szProto)) { - ptrW tszChatRoom(Contact::GetInfo(CNF_UNIQUEID, hContact, szProto)); - Chat_SendUserMessage(szProto, tszChatRoom, data); + auto *si = Chat_Find(ptrW(Contact::GetInfo(CNF_UNIQUEID, hContact, szProto)), szProto); + Chat_SendUserMessage(si, data); return; } |