revert to previous method of checking for new messages
This commit is contained in:
parent
0e93f9cd5d
commit
42ffe1d1a3
1 changed files with 2 additions and 2 deletions
|
@ -145,8 +145,8 @@ class ChannelMonitor(threading.Thread):
|
||||||
def poll_channel(self, room):
|
def poll_channel(self, room):
|
||||||
|
|
||||||
try:
|
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=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='last_read', include_raw=1)
|
||||||
logging.debug(meta)
|
logging.debug(meta)
|
||||||
if 'deleted_ids' in meta:
|
if 'deleted_ids' in meta:
|
||||||
self.delete_msgs(room.room_id, meta['deleted_ids'])
|
self.delete_msgs(room.room_id, meta['deleted_ids'])
|
||||||
|
|
Loading…
Reference in a new issue