Open gabrieligbastos opened 5 years ago
The bug seems to be that I was asking for Non_NotificationMessages.. But flag unreads one...
If I had a chat with only one unread message that was notificaiton one, (somebody added me to a group i.e.) it was crashing in this, because he filtered for non-notificaiton, but forced to fetch one because of unread flags, i imagine this was the problem..
maybe should treat this in the get_unread method, i'm doing workaround here at program side
I had the same issue, it's how I fixed it:
Replaced
messages = [factory_message(message, self) for message in raw_message_group['messages']]
with
messages = list(filter(None.__ne__,[factory_message(message, self) for message in raw_message_group['messages']]))
or if you didn't convert it still to python 3:
messages = list(filter(None,[factory_message(message, self) for message in raw_message_group['messages']]))
Basically it filters out all the None object from the array list
@mukulhase please check if it's ok I can create merge request
I've already saw #328 and #86 and #243 and #385 but not working, was not my problem =(
Then, I'm getting:
Any clue why the messages are NoneType and then no timestamp attribute?
Operating System
Python Version
Python 2.7.15
Selenium Version
Firefox v61.0.2 (64-bit)
Everything running inside docker container. Already tried to pull again all code from github , built it and still now working =(