mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Now is possible to delete direct messages
This commit is contained in:
parent
9eec1c7c44
commit
1e9d4432f3
@ -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"])
|
||||||
|
Loading…
Reference in New Issue
Block a user