summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-02-09 21:06:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-02-09 21:06:25 +0000
commit8e6d90e5ce900f627c1303c35ff42ae7f70e2e80 (patch)
tree4ca72fa188f7395b49ae617b6e6a5e01eba5d8f0 /protocols/WhatsApp
parent822419030c568b40e8a7921232f74a1ecfd749ce (diff)
fix for setting global online status
git-svn-id: http://svn.miranda-ng.org/main/trunk@12075 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp')
-rw-r--r--protocols/WhatsApp/src/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/connection.cpp b/protocols/WhatsApp/src/connection.cpp
index 5ad51e788c..90c56a4973 100644
--- a/protocols/WhatsApp/src/connection.cpp
+++ b/protocols/WhatsApp/src/connection.cpp
@@ -52,7 +52,7 @@ void WhatsAppProto::stayConnectedLoop(void*)
ToggleStatusMenuItems(false);
int prevStatus = m_iStatus;
m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
- ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)m_iStatus, prevStatus);
+ ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)prevStatus, m_iStatus);
break;
}
@@ -83,7 +83,7 @@ void WhatsAppProto::stayConnectedLoop(void*)
debugLogA("Set status to online");
m_iStatus = m_iDesiredStatus;
- ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)m_iStatus, ID_STATUS_CONNECTING);
+ ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus);
this->ToggleStatusMenuItems(true);
ForkThread(&WhatsAppProto::ProcessBuddyList, NULL);