mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 20:53:13 -06:00
Ensure direct message buffers are correctly saved in database
This commit is contained in:
parent
77bee64421
commit
74e4fe6357
@ -103,7 +103,12 @@ class Session(base.baseSession):
|
|||||||
if self.settings["general"]["reverse_timelines"] == False: objects.append(i)
|
if self.settings["general"]["reverse_timelines"] == False: objects.append(i)
|
||||||
else: objects.insert(0, i)
|
else: objects.insert(0, i)
|
||||||
incoming = incoming+1
|
incoming = incoming+1
|
||||||
|
self.db["direct_messages"] = objects
|
||||||
|
|
||||||
|
self.db["sent_direct_messages"] = sent_objects
|
||||||
pub.sendMessage("sent-dms-updated", total=sent, account=self.db["user_name"])
|
pub.sendMessage("sent-dms-updated", total=sent, account=self.db["user_name"])
|
||||||
|
|
||||||
|
|
||||||
return incoming
|
return incoming
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user