From bed36b071fe082d34e5961bb5105e662f17aa7c6 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 26 Apr 2013 19:41:06 +0000 Subject: - sync was returned - fixed contacts nick updating - fixed eternal "connecting" git-svn-id: http://svn.miranda-ng.org/main/trunk@4539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skypekit/account.cpp | 7 +++++++ protocols/Skype/src/skypekit/account.h | 1 + protocols/Skype/src/skypekit/conversation.cpp | 2 ++ 3 files changed, 10 insertions(+) (limited to 'protocols/Skype/src/skypekit') diff --git a/protocols/Skype/src/skypekit/account.cpp b/protocols/Skype/src/skypekit/account.cpp index 31b4c45298..fa931d179e 100644 --- a/protocols/Skype/src/skypekit/account.cpp +++ b/protocols/Skype/src/skypekit/account.cpp @@ -15,6 +15,13 @@ void CAccount::SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProt this->callback = callback; } +bool CAccount::IsOnline() +{ + CAccount::STATUS status; + this->GetPropStatus(status); + return status == CAccount::LOGGED_IN; +} + bool CAccount::SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result) { int fbl; diff --git a/protocols/Skype/src/skypekit/account.h b/protocols/Skype/src/skypekit/account.h index b537019698..07ff0b929c 100644 --- a/protocols/Skype/src/skypekit/account.h +++ b/protocols/Skype/src/skypekit/account.h @@ -14,6 +14,7 @@ public: CAccount(unsigned int oid, SERootObject* root); + bool IsOnline(); bool SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result); void SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto); diff --git a/protocols/Skype/src/skypekit/conversation.cpp b/protocols/Skype/src/skypekit/conversation.cpp index c0d855150b..2b0e26ad80 100644 --- a/protocols/Skype/src/skypekit/conversation.cpp +++ b/protocols/Skype/src/skypekit/conversation.cpp @@ -2,6 +2,8 @@ CConversation::CConversation(unsigned int oid, SERootObject* root) : Conversation(oid, root) { + this->GetParticipants(this->participants, CConversation::OTHER_CONSUMERS); + fetch(this->participants); } void CConversation::OnParticipantListChange() -- cgit v1.2.3