From 48f4b68ffcb66611a4294ed0fd0ac4e49dedb09d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 8 Jun 2013 14:51:53 +0000 Subject: 3 spaces changed to 1 tab git-svn-id: http://svn.miranda-ng.org/main/trunk@4902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/chat.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'protocols/WhatsApp/src/chat.cpp') diff --git a/protocols/WhatsApp/src/chat.cpp b/protocols/WhatsApp/src/chat.cpp index a53a5077ca..e365a93e62 100644 --- a/protocols/WhatsApp/src/chat.cpp +++ b/protocols/WhatsApp/src/chat.cpp @@ -4,12 +4,12 @@ int WhatsAppProto::OnJoinChat(WPARAM,LPARAM) { - return 0; + return 0; } int WhatsAppProto::OnLeaveChat(WPARAM,LPARAM) { - return 0; + return 0; } int WhatsAppProto::OnChatOutgoing(WPARAM wParam, LPARAM lParam) @@ -35,13 +35,13 @@ int WhatsAppProto::OnChatOutgoing(WPARAM wParam, LPARAM lParam) mir_free(id); if (isOnline()) { - HANDLE hContact = this->ContactIDToHContact(chat_id); - if (hContact) - { - LOG("**Chat - Outgoing message: %s", text); - this->SendMsg(hContact, IS_CHAT, msg.c_str()); - - // #TODO Move to SendMsgWorker, otherwise all messages are "acknowledged" by Miranda + HANDLE hContact = this->ContactIDToHContact(chat_id); + if (hContact) + { + LOG("**Chat - Outgoing message: %s", text); + this->SendMsg(hContact, IS_CHAT, msg.c_str()); + + // #TODO Move to SendMsgWorker, otherwise all messages are "acknowledged" by Miranda GCDEST gcd = { m_szModuleName, { NULL }, GC_EVENT_MESSAGE }; gcd.ptszID = hook->pDest->ptszID; @@ -58,8 +58,8 @@ int WhatsAppProto::OnChatOutgoing(WPARAM wParam, LPARAM lParam) CallServiceSync(MS_GC_EVENT, 0, (LPARAM)&gce); mir_free((void*)gce.ptszUID); - mir_free((void*)gce.ptszNick); - } + mir_free((void*)gce.ptszNick); + } } break; -- cgit v1.2.3