IF there are no tweets or favs, the timeline is not created

This commit is contained in:
2015-08-21 09:12:54 -05:00
parent 57315c3b6e
commit 71fed7300b
2 changed files with 12 additions and 0 deletions

View File

@@ -715,6 +715,9 @@ class Controller(object):
answer = commonMessageDialogs.protected_user()
if answer == widgetUtils.NO: return
if dlg.get_action() == "tweets":
if usr["statuses_count"] == 0:
commonMessageDialogs.no_tweets()
return
if dlg.get_user() in buff.session.settings["other_buffers"]["timelines"]:
commonMessageDialogs.timeline_exist()
return
@@ -728,6 +731,9 @@ class Controller(object):
pub.sendMessage("restart-streams", streams=["timelinesStream"], session=buff.session)
buffer.session.sound.play("create_timeline.ogg")
else:
if usr["favourites_count"] == 0:
commonMessageDialogs.no_favs()
return
if dlg.get_user() in buffer.session.settings["other_buffers"]["favourites_timelines"]:
commonMessageDialogs.timeline_exist()
return