From 5c131b167713e3f44e00a96cdbee389c7bddc760 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 25 Apr 2015 19:17:44 +0000 Subject: SkypeWeb: DestroyChatRoom menu item. git-svn-id: http://svn.miranda-ng.org/main/trunk@13147 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_chatrooms.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'protocols/SkypeWeb/src/skype_chatrooms.cpp') diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index 8b9e18e3fe..769c42b5da 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -258,6 +258,21 @@ INT_PTR CSkypeProto::OnLeaveChatRoom(WPARAM hContact, LPARAM) return 0; } +INT_PTR CSkypeProto::SvcDestroyChat(WPARAM hContact, LPARAM) +{ + debugLogA("CVkProto::SvcDestroyKickChat"); + if (!IsOnline()) + return 1; + + ptrA chatId(db_get_sa(hContact, m_szModuleName, SKYPE_SETTINGS_ID)); + + SendRequest(new KickUserRequest(RegToken, chatId, SelfSkypeName, Server)); + + CallService(MS_DB_CONTACT_DELETE, (WPARAM)hContact, 0); + + return 0; +} + /* CHAT EVENT */ void CSkypeProto::OnChatEvent(JSONNODE *node) -- cgit v1.2.3