Fixed previous commit ;)

This commit is contained in:
Nico 2017-06-06 15:24:03 -05:00
parent ce70a912dd
commit a51a6b7272

View file

@ -350,13 +350,13 @@ class Session(YowsupApp):
if media._from.split('@')[1] == 'broadcast': # Broadcast message if media._from.split('@')[1] == 'broadcast': # Broadcast message
self.sendMessageToXMPP(partname, self.broadcast_prefix, media.timestamp) self.sendMessageToXMPP(partname, self.broadcast_prefix, media.timestamp)
self.sendMessageToXMPP(partname, url, media.timestamp) self.sendMessageToXMPP(partname, url, media.timestamp)
self.sendMessageToXMPP(partname, media.caption, media.timestamp) self.sendMessageToXMPP(partname, caption, media.timestamp)
else: # Group message else: # Group message
self.sendGroupMessageToXMPP(buddy, partname, url, media.timestamp) self.sendGroupMessageToXMPP(buddy, partname, url, media.timestamp)
self.sendGroupMessageToXMPP(buddy, partname, media.caption, media.timestamp) self.sendGroupMessageToXMPP(buddy, partname, caption, media.timestamp)
else: else:
self.sendMessageToXMPP(buddy, url, media.timestamp) self.sendMessageToXMPP(buddy, url, media.timestamp)
self.sendMessageToXMPP(buddy, media.caption, media.timestamp) self.sendMessageToXMPP(buddy, caption, media.timestamp)
self.sendReceipt(media._id, media._from, None, media.participant) self.sendReceipt(media._id, media._from, None, media.participant)
self.recvMsgIDs.append((media._id, media._from, media.participant, media.timestamp)) self.recvMsgIDs.append((media._id, media._from, media.participant, media.timestamp))