actions: Change type of wildcard_mention_user_ids in message_dict to set.

The message_dict['wildcard_mention_user_ids'] should be empty set instead
of empty list when there are no wildcard mentions similar to the case
when there are wildcard mentions, where it is equal to set of user ids and
not list of user ids.
This commit is contained in:
sahil839
2020-11-22 01:14:38 +05:30
committed by Tim Abbott
parent 0d3f9fc855
commit db85b8a236

View File

@@ -1495,7 +1495,7 @@ def build_message_send_dict(message_dict: Dict[str, Any],
if message_dict['message'].mentions_wildcard: if message_dict['message'].mentions_wildcard:
message_dict['wildcard_mention_user_ids'] = info['wildcard_mention_user_ids'] message_dict['wildcard_mention_user_ids'] = info['wildcard_mention_user_ids']
else: else:
message_dict['wildcard_mention_user_ids'] = [] message_dict['wildcard_mention_user_ids'] = set()
''' '''
Once we have the actual list of mentioned ids from message Once we have the actual list of mentioned ids from message