Skip to content

Commit

Permalink
[EVOLUTION] - Deliver reactions to non text elements for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanogueira committed Mar 8, 2024
1 parent 5818336 commit fb49c05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rocket_connect/plugins/evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ def incoming(self):
ref_message = self.message.get("data").get("message").get("reactionMessage")
ref_id = ref_message.get("key").get("id")
original_message = self.get_message(ref_id)
if not original_message:
# could not find message
self.message_object.delivered = True
self.message_object.save()
return JsonResponse({})
if original_message.get("message").get("extendedTextMessage"):
msg = original_message.get("message").get("extendedTextMessage").get("text")
elif original_message.get("message").get("imageMessage"):
Expand Down

0 comments on commit fb49c05

Please sign in to comment.