From 42ffe1d1a3da163252219bff24d50915ca0cb2bb Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 31 Mar 2018 08:55:40 -0700 Subject: [PATCH] revert to previous method of checking for new messages --- pnut-bridge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'])