|
@@ -199,6 +199,10 @@ class AgentService:
|
|
|
user_id = staff_user['user_id']
|
|
|
agent = self._get_agent_instance(staff_id, user_id)
|
|
|
should_initiate = agent.should_initiate_conversation()
|
|
|
+ user_tags = self.user_relation_manager.get_user_tags(user_id)
|
|
|
+ white_list_tags = {}
|
|
|
+ if not set(user_tags).intersection(white_list_tags):
|
|
|
+ should_initiate = False
|
|
|
|
|
|
if should_initiate:
|
|
|
logger.warning("user: {}, initiate conversation".format(user_id))
|