Fixed an incorrect handling in attachments for chat messages

This commit is contained in:
Manuel Cortez 2018-12-21 08:18:39 -06:00
parent 34c5824255
commit c8375ca138

View File

@ -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.