From c00f494c8165b9f2d9facc6488173502b19ca696 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Jan 2017 15:17:47 +0300 Subject: - added reaction to remote contact removal; - now we remove a channel & friendship on local contact removal --- protocols/Discord/src/proto.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/Discord/src/proto.h') diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index 2ac14310b8..051095d8e8 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -225,8 +225,9 @@ public: int __cdecl OnPreShutdown(WPARAM, LPARAM); int __cdecl OnOptionsInit(WPARAM, LPARAM); int __cdecl OnDbEventRead(WPARAM, LPARAM); - + // dispatch commands + void OnCommandFriendRemoved(const JSONNode&); void OnCommandMessage(const JSONNode&); void OnCommandPresence(const JSONNode&); void OnCommandReady(const JSONNode&); @@ -235,6 +236,8 @@ public: void OnLoggedIn(); void OnLoggedOut(); + + int OnDeleteContact(MCONTACT hContact); void OnReceiveAuth(NETLIBHTTPREQUEST*, AsyncHttpRequest*); void OnReceiveChannels(NETLIBHTTPREQUEST*, AsyncHttpRequest*); -- cgit v1.2.3