summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/clc.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp
index 5b72ddb2ab..a7ebcd0bb9 100644
--- a/src/mir_app/src/clc.cpp
+++ b/src/mir_app/src/clc.cpp
@@ -134,6 +134,14 @@ static int ClcProtoAck(WPARAM, LPARAM lParam)
{
ACKDATA *ack = (ACKDATA *)lParam;
if (ack->type == ACKTYPE_STATUS) {
+ if (ack->result == ACKRESULT_SUCCESS) {
+ PROTOACCOUNT *pa = Proto_GetAccount(ack->szModule);
+ if (pa) {
+ pa->iRealStatus = ack->lParam;
+ Clist_TrayIconUpdateBase(ack->szModule);
+ }
+ }
+
cli.pfnCluiProtocolStatusChanged(lParam, ack->szModule);
if ((INT_PTR)ack->hProcess < ID_STATUS_ONLINE && ack->lParam >= ID_STATUS_ONLINE) {
@@ -150,14 +158,6 @@ static int ClcProtoAck(WPARAM, LPARAM lParam)
}
WindowList_BroadcastAsync(hClcWindowList, INTM_INVALIDATE, 0, 0);
-
- if (ack->result == ACKRESULT_SUCCESS) {
- PROTOACCOUNT *pa = Proto_GetAccount(ack->szModule);
- if (pa) {
- pa->iRealStatus = ack->lParam;
- Clist_TrayIconUpdateBase(ack->szModule);
- }
- }
}
return 0;
}