Fixed an incorrect handling in attachments for chat messages
This commit is contained in:
parent
34c5824255
commit
c8375ca138
@ -812,7 +812,8 @@ class chatBuffer(baseBuffer):
|
||||
return local_attachments
|
||||
|
||||
def _send_message(self, text, attachments=[]):
|
||||
self.attachments_to_be_sent = self.upload_attachments(self.attachments_to_be_sent)
|
||||
if hasattr(self, "attachments_to_be_sent"):
|
||||
self.attachments_to_be_sent = self.upload_attachments(self.attachments_to_be_sent)
|
||||
try:
|
||||
# Let's take care about the random_id attribute.
|
||||
# This should be unique per message and should be changed right after the message has been sent.
|
||||
|
Loading…
Reference in New Issue
Block a user