summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_menus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_menus.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_menus.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp
index ec2710f29a..e461ac5b81 100644
--- a/protocols/SkypeWeb/src/skype_menus.cpp
+++ b/protocols/SkypeWeb/src/skype_menus.cpp
@@ -28,7 +28,10 @@ int CSkypeProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM)
return 0;
if (this->isChatRoom(hContact))
+ {
+ Menu_ShowItem(ContactMenuItems[CMI_DESTROYCHAT], true);
return 0;
+ }
bool isCtrlPressed = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
bool isAuthNeed = getByte(hContact, "Auth", 0) > 0;
@@ -80,6 +83,13 @@ void CSkypeProto::InitMenus()
mi.icolibItem = GetIconHandle("synchistory");
ContactMenuItems[CMI_GETSERVERHISTORY] = Menu_AddContactMenuItem(&mi);
CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::GetContactHistory>);
+
+ mi.pszService = MODULE"/DestroyChat";
+ mi.position = CMI_POSITION + CMI_DESTROYCHAT;
+ mi.icolibItem = LoadSkinnedIconHandle(SKINICON_CHAT_LEAVE);
+ mi.ptszName = LPGENT("Destroy room");
+ ContactMenuItems[CMI_DESTROYCHAT] = Menu_AddContactMenuItem(&mi);
+ CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::SvcDestroyChat>);
}
void CSkypeProto::UninitMenus()