revert to previous method of checking for new messages

This commit is contained in:
Morgan McMillian 2018-03-31 08:55:40 -07:00
parent 0e93f9cd5d
commit 42ffe1d1a3

View file

@ -145,8 +145,8 @@ class ChannelMonitor(threading.Thread):
def poll_channel(self, room):
try:
# messages, meta = pnutpy.api.get_channel_messages(room.pnut_chan, since_id=room.pnut_since, include_raw=1)
messages, meta = pnutpy.api.get_channel_messages(room.pnut_chan, since_id='last_read', include_raw=1)
messages, meta = pnutpy.api.get_channel_messages(room.pnut_chan, since_id=room.pnut_since, include_raw=1)
# messages, meta = pnutpy.api.get_channel_messages(room.pnut_chan, since_id='last_read', include_raw=1)
logging.debug(meta)
if 'deleted_ids' in meta:
self.delete_msgs(room.room_id, meta['deleted_ids'])