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,6 +812,7 @@ class chatBuffer(baseBuffer):
return local_attachments return local_attachments
def _send_message(self, text, attachments=[]): def _send_message(self, text, attachments=[]):
if hasattr(self, "attachments_to_be_sent"):
self.attachments_to_be_sent = self.upload_attachments(self.attachments_to_be_sent) self.attachments_to_be_sent = self.upload_attachments(self.attachments_to_be_sent)
try: try:
# Let's take care about the random_id attribute. # Let's take care about the random_id attribute.