mirror of
https://github.com/nicolabs/nicobot.git
synced 2025-09-06 14:29:23 +02:00
Fixed: not all messages in a batch were returned to the bot engine
This commit is contained in:
parent
4da5d98877
commit
f4464aa0e3
|
@ -135,14 +135,12 @@ class SignalChatter(Chatter):
|
|||
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:
|
||||
|
@ -154,8 +152,6 @@ class SignalChatter(Chatter):
|
|||
else:
|
||||
logging.debug("Discarding message that was sent before I started")
|
||||
|
||||
return False
|
||||
|
||||
|
||||
|
||||
# if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue