Commit aeffdf92 authored by Tijmen de Mes's avatar Tijmen de Mes

Only show message loading screen if there is a session

parent c6bdb2d2
......@@ -668,10 +668,10 @@ class ChatWidget(base_class, ui_class):
self.last_message = None
self.session = session
self.history_loaded = False
self.show_loading_screen(True)
if session is not None:
notification_center = NotificationCenter()
notification_center.add_observer(ObserverWeakrefProxy(self), sender=session.blink_session)
self.show_loading_screen(True)
# connect to signals
self.chat_input.textChanged.connect(self._SH_ChatInputTextChanged)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment