mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Fixed dm ordering issue
This commit is contained in:
parent
2323c3cac5
commit
a1878f10b3
@ -94,8 +94,7 @@ class Session(base.baseSession):
|
|||||||
objects = self.db["direct_messages"]
|
objects = self.db["direct_messages"]
|
||||||
sent_objects = self.db["sent_direct_messages"]
|
sent_objects = self.db["sent_direct_messages"]
|
||||||
for i in data:
|
for i in data:
|
||||||
# Twitter returns sender_id as str, which must be converted to int in order to match to our user_id object.
|
if i.message_create["sender_id"] == self.db["user_id"]:
|
||||||
if int(i.message_create["sender_id"]) == self.db["user_id"]:
|
|
||||||
if "sent_direct_messages" in self.db and utils.find_item(i, self.db["sent_direct_messages"]) == None:
|
if "sent_direct_messages" in self.db and utils.find_item(i, self.db["sent_direct_messages"]) == None:
|
||||||
if self.settings["general"]["reverse_timelines"] == False: sent_objects.append(i)
|
if self.settings["general"]["reverse_timelines"] == False: sent_objects.append(i)
|
||||||
else: sent_objects.insert(0, i)
|
else: sent_objects.insert(0, i)
|
||||||
|
Loading…
Reference in New Issue
Block a user