diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-07-06 09:00:21 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-07-06 09:00:21 +0000 |
commit | 1e11f5fc920b54759b2ec16854d8f9e65662cdec (patch) | |
tree | 51dd2419a0278a57d1d0dfab6697624c8dc2ced8 /protocols/FacebookRM/src/proto.cpp | |
parent | ea1f790f193039c1091d6c091825fe924a30fcb0 (diff) |
Facebook: Fix invisible status (now it's not true-invisible again)
It's not fully tested, should be fixed better later.
git-svn-id: http://svn.miranda-ng.org/main/trunk@9702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 4a36cc96d4..54cd7f0b10 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -35,6 +35,8 @@ FacebookProto::FacebookProto(const char* proto_name,const TCHAR* username) : facy.send_message_lock_ = CreateMutex(NULL, FALSE, NULL); facy.fcb_conn_lock_ = CreateMutex(NULL, FALSE, NULL); + m_invisible = false; + CreateProtoService(PS_CREATEACCMGRUI, &FacebookProto::SvcCreateAccMgrUI); CreateProtoService(PS_GETMYAWAYMSG, &FacebookProto::GetMyAwayMsg); CreateProtoService(PS_GETMYAVATART, &FacebookProto::GetMyAvatar); @@ -175,6 +177,8 @@ int FacebookProto::SetStatus(int new_status) return 0; } + m_invisible = (new_status == ID_STATUS_INVISIBLE); + ForkThread(&FacebookProto::ChangeStatus, this); return 0; } |