diff --git a/pnut-bridge.py b/pnut-bridge.py index f4da8b0..e131f45 100644 --- a/pnut-bridge.py +++ b/pnut-bridge.py @@ -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'])