Ensure uniqueness of Msg sender_strings list. Resolves #2127.
This commit is contained in:
parent
050b050d24
commit
08190a7ff4
1 changed files with 3 additions and 2 deletions
|
|
@ -396,7 +396,8 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
|
||||||
to build senders for the message.
|
to build senders for the message.
|
||||||
sender_strings (list, optional): Name strings of senders. Used for external
|
sender_strings (list, optional): Name strings of senders. Used for external
|
||||||
connections where the sender is not an account or object.
|
connections where the sender is not an account or object.
|
||||||
When this is defined, external will be assumed.
|
When this is defined, external will be assumed. The list will be
|
||||||
|
filtered so each sender-string only occurs once.
|
||||||
keep_log (bool or None, optional): This allows to temporarily change the logging status of
|
keep_log (bool or None, optional): This allows to temporarily change the logging status of
|
||||||
this channel message. If `None`, the Channel's `keep_log` Attribute will
|
this channel message. If `None`, the Channel's `keep_log` Attribute will
|
||||||
be used. If `True` or `False`, that logging status will be used for this
|
be used. If `True` or `False`, that logging status will be used for this
|
||||||
|
|
@ -428,7 +429,7 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
|
||||||
if not msgobj:
|
if not msgobj:
|
||||||
return False
|
return False
|
||||||
msgobj = self.message_transform(
|
msgobj = self.message_transform(
|
||||||
msgobj, emit=emit, sender_strings=sender_strings, external=external
|
msgobj, emit=emit, sender_strings=list(set(sender_strings)), external=external
|
||||||
)
|
)
|
||||||
self.distribute_message(msgobj, online=online)
|
self.distribute_message(msgobj, online=online)
|
||||||
self.post_send_message(msgobj)
|
self.post_send_message(msgobj)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue