Skip to content

Commit

Permalink
Fixed: not all messages in a batch were returned to the bot engine
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobo committed May 15, 2020
1 parent 4da5d98 commit f4464aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nicobot/signalcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,12 @@ def filterMessages( self, events ):
if envelope['source'] == self.recipient:
logging.debug("<<< %s" % message)
self.bot.onMessage(message)
return True
else:
logging.debug("Discarding message not from recipient %s"%self.recipient)
elif self.group:
if dataMessage['groupInfo'] and dataMessage['groupInfo']['groupId']:
logging.debug("<<< %s" % message)
self.bot.onMessage(message)
return True
else:
logging.debug("Discarding message not from group %s" % self.group)
else:
Expand All @@ -154,8 +152,6 @@ def filterMessages( self, events ):
else:
logging.debug("Discarding message that was sent before I started")

return False



# if __name__ == '__main__':
Expand Down

0 comments on commit f4464aa

Please sign in to comment.