From 6893d923a3ede4b3289b901193a40e4fd3149455 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 6 Aug 2018 11:37:46 -0500 Subject: [PATCH] Don't put a sent dm in the buffer right after the event has been sent --- src/controller/buffersController.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index 5c753db1..7044869a 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -585,14 +585,14 @@ class baseBufferController(bufferController): } } } - val = self.session.api_call(call_name="send_direct_message", **event_data) - if val != None: - if self.session.settings["general"]["reverse_timelines"] == False: - self.session.db["direct_messages"]["items"].append(val["event"]) - else: - self.session.db["direct_messages"]["items"].insert(0, val["event"]) - pub.sendMessage("sent-dm", data=val["event"], user=self.session.db["user_name"]) - if hasattr(dm.message, "destroy"): dm.message.destroy() + val = self.session.api_call(call_name="send_direct_message", _sound="dm_sent.ogg", **event_data) +# if val != None: +# if self.session.settings["general"]["reverse_timelines"] == False: +# self.session.db["direct_messages"]["items"].append(val["event"]) +# else: +# self.session.db["direct_messages"]["items"].insert(0, val["event"]) +# pub.sendMessage("sent-dm", data=val["event"], user=self.session.db["user_name"]) +# if hasattr(dm.message, "destroy"): dm.message.destroy() @_tweets_exist def retweet(self, *args, **kwargs):