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)
if answer == widgetUtils.YES:
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"])
else:
self.session.twitter.twitter.destroy_status(id=self.get_right_tweet()["id"])