mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
address @adbenitez and @r10s comments
This commit is contained in:
@@ -4504,15 +4504,6 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
|
|||||||
#define DC_EVENT_SECUREJOIN_JOINER_PROGRESS 2061
|
#define DC_EVENT_SECUREJOIN_JOINER_PROGRESS 2061
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* (DEPRECATED)
|
|
||||||
*
|
|
||||||
* @param data1 (int) chat_id
|
|
||||||
* @param data2 (int) contact_id
|
|
||||||
* @return 0
|
|
||||||
*/
|
|
||||||
#define DC_EVENT_SECUREJOIN_MEMBER_ADDED 2062
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This event is sent for each member that gets added to a (verified or unverified) chat.
|
* This event is sent for each member that gets added to a (verified or unverified) chat.
|
||||||
*
|
*
|
||||||
@@ -4520,7 +4511,7 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
|
|||||||
* @param data2 (int) contact_id
|
* @param data2 (int) contact_id
|
||||||
* @return 0
|
* @return 0
|
||||||
*/
|
*/
|
||||||
#define DC_EVENT_MEMBER_ADDED 2063
|
#define DC_EVENT_MEMBER_ADDED 2062
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This event is sent for each member that gets removed from a (verified or unverified) chat.
|
* This event is sent for each member that gets removed from a (verified or unverified) chat.
|
||||||
@@ -4529,7 +4520,7 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
|
|||||||
* @param data2 (int) contact_id
|
* @param data2 (int) contact_id
|
||||||
* @return 0
|
* @return 0
|
||||||
*/
|
*/
|
||||||
#define DC_EVENT_MEMBER_REMOVED 2064
|
#define DC_EVENT_MEMBER_REMOVED 2063
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
|||||||
@@ -5,8 +5,10 @@
|
|||||||
|
|
||||||
- introduced PerAccount and Global hooks that plugins can implement
|
- introduced PerAccount and Global hooks that plugins can implement
|
||||||
|
|
||||||
- introduced `member_added()` plugin event.
|
- introduced `member_added()` and `member_removed` plugin events.
|
||||||
|
|
||||||
|
- introduced two documented examples for an echo and a group-membership
|
||||||
|
tracking plugin.
|
||||||
|
|
||||||
0.800.0
|
0.800.0
|
||||||
-------
|
-------
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class Account(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
hook = hookspec.Global._get_plugin_manager().hook
|
hook = hookspec.Global._get_plugin_manager().hook
|
||||||
hook.account_init(account=self, db_path=db_path)
|
hook.account_init(account=self)
|
||||||
|
|
||||||
self._threads = iothreads.IOThreads(self)
|
self._threads = iothreads.IOThreads(self)
|
||||||
self._hook_event_queue = queue.Queue()
|
self._hook_event_queue = queue.Queue()
|
||||||
|
|||||||
Reference in New Issue
Block a user