mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 22:46:29 +03:00
refine member-added and member-removed plugin hooks to signal the sender (who added/removed a contact )
add ac_chat_modified hook event add account.get_contact_by_addr (thanks @r10s)
This commit is contained in:
@@ -53,11 +53,15 @@ class PerAccount:
|
||||
""" Called when an outgoing message has been delivered to SMTP. """
|
||||
|
||||
@account_hookspec
|
||||
def ac_member_added(self, chat, contact):
|
||||
""" Called for each contact added to a chat. """
|
||||
def ac_chat_modified(self, chat):
|
||||
""" Chat was created or modified regarding membership, avatar, title. """
|
||||
|
||||
@account_hookspec
|
||||
def ac_member_removed(self, chat, contact):
|
||||
def ac_member_added(self, chat, contact, sender):
|
||||
""" Called for each contact added to an accepted chat. """
|
||||
|
||||
@account_hookspec
|
||||
def ac_member_removed(self, chat, contact, sender):
|
||||
""" Called for each contact removed from a chat. """
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user