Now is possible to delete direct messages

This commit is contained in:
Manuel Cortez 2015-03-26 16:20:21 -06:00
parent 9eec1c7c44
commit 1e9d4432f3

View File

@ -417,7 +417,7 @@ class baseBufferController(bufferController):
answer = commonMessageDialogs.delete_tweet_dialog(None) answer = commonMessageDialogs.delete_tweet_dialog(None)
if answer == widgetUtils.YES: if answer == widgetUtils.YES:
try: try:
if self.name == "direct_messages": if self.name == "direct_messages" or self.name == "sent_direct_messages":
self.session.twitter.twitter.destroy_direct_message(id=self.get_right_tweet()["id"]) self.session.twitter.twitter.destroy_direct_message(id=self.get_right_tweet()["id"])
else: else:
self.session.twitter.twitter.destroy_status(id=self.get_right_tweet()["id"]) self.session.twitter.twitter.destroy_status(id=self.get_right_tweet()["id"])