Fixed lists

This commit is contained in:
Manuel Cortez 2022-11-16 12:35:19 -06:00
parent 7cbf873db5
commit 6e03578e86
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790
2 changed files with 3 additions and 2 deletions

View File

@ -505,7 +505,8 @@ class Controller(object):
log.debug("Exiting...")
log.debug("Saving global configuration...")
for item in sessions.sessions:
if sessions.sessions[item].logged == False: continue
if sessions.sessions[item].logged == False:
continue
if hasattr(sessions.sessions[item], "stop_streaming"):
log.debug("Disconnecting streaming endpoint for session" + sessions.sessions[item].session_id)
sessions.sessions[item].stop_streaming()

View File

@ -92,7 +92,7 @@ class listsController(object):
if self.dialog.lista.get_count() == 0: return
list = self.session.db["lists"][self.dialog.get_item()]
pub.sendMessage("createBuffer", buffer_type="ListBuffer", session_type=self.session.type, buffer_title=_("List for {}").format(list.name), parent_tab=self.lists_buffer_position, start=True, kwargs=dict(function="list_timeline", name="%s-list" % (list.name,), sessionObject=self.session, account=self.session.get_name(), bufferType=None, sound="list_tweet.ogg", list_id=list.id, include_ext_alt_text=True, tweet_mode="extended"))
self.session.db["other_buffers"]["lists"].append(list.id)
self.session.settings["other_buffers"]["lists"].append(list.name)
self.session.settings.write()
def subscribe(self, *args, **kwargs):