comparison sat/plugins/plugin_sec_aesgcm.py @ 3222:653fa213d2f8

plugin aesgcm: wait for each splitted message to be sent before sending next one
author Goffi <goffi@goffi.org>
date Sun, 22 Mar 2020 14:01:47 +0100
parents 2ba602aef90e
children be6d91572633
comparison
equal deleted inserted replaced
3221:b1c90eedbc12 3222:653fa213d2f8
172 for attachment in attachments: 172 for attachment in attachments:
173 body_elt.addContent(attachment["url"]) 173 body_elt.addContent(attachment["url"])
174 174
175 for attachment in extra_attachments: 175 for attachment in extra_attachments:
176 # we send all remaining attachment in a separate message 176 # we send all remaining attachment in a separate message
177 client.sendMessage( 177 await client.sendMessage(
178 to_jid=data['to'], 178 to_jid=data['to'],
179 message={'': ''}, 179 message={'': ''},
180 subject=data['subject'], 180 subject=data['subject'],
181 mess_type=data['type'], 181 mess_type=data['type'],
182 extra={C.MESS_KEY_ATTACHMENTS: [attachment]}, 182 extra={C.MESS_KEY_ATTACHMENTS: [attachment]},