diff options
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.cpp')
-rw-r--r-- | protocols/Skype/src/skype_subclassing.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_subclassing.cpp b/protocols/Skype/src/skype_subclassing.cpp index adbd6a5120..d8843a800f 100644 --- a/protocols/Skype/src/skype_subclassing.cpp +++ b/protocols/Skype/src/skype_subclassing.cpp @@ -197,6 +197,17 @@ void CConversation::OnMessage(const MessageRef & message) (proto->*callback)(message->ref());
}
+CConversation::Ref CConversation::FindBySid(CSkype *skype, SEString sid)
+{
+ SEStringList participants;
+ participants.append(sid);
+
+ CConversation::Ref conversation;
+ skype->GetConversationByParticipants(participants, conversation);
+
+ return conversation;
+}
+
void CConversation::SetOnMessageReceivedCallback(OnMessageReceived callback, CSkypeProto* proto)
{
this->proto = proto;
|