tweets, replies and retweets will be added to sent tweets after being sent

This commit is contained in:
2018-08-16 11:17:15 -05:00
parent b44e30ed28
commit 2668e47a6f
2 changed files with 26 additions and 11 deletions

View File

@@ -1252,9 +1252,12 @@ class Controller(object):
def manage_sent_tweets(self, data, user):
buffer = self.search_buffer("sent_tweets", user)
if buffer == None: return
play_sound = "tweet_send.ogg"
if "sent_tweets" not in buffer.session.settings["other_buffers"]["muted_buffers"]:
self.notify(buffer.session, play_sound=play_sound)
# if "sent_tweets" not in buffer.session.settings["other_buffers"]["muted_buffers"]:
# self.notify(buffer.session, play_sound=play_sound)
if buffer.session.settings["general"]["reverse_timelines"] == False:
buffer.session.db[buffer.name].append(data)
else:
buffer.session.db[buffer.name].insert(0, data)
buffer.add_new_item(data)
def manage_friend(self, data, user):