+5
-3
@@ -1406,9 +1406,11 @@
|
||||
if (chat.length) {
|
||||
chat.remove();
|
||||
} else {
|
||||
this._chat = new Sao.Chat(this.screen.current_reference);
|
||||
this._chat.refresh();
|
||||
this.sidebar_content.append(this._chat.el);
|
||||
if (this.screen.current_reference) {
|
||||
this._chat = new Sao.Chat(this.screen.current_reference);
|
||||
this._chat.refresh();
|
||||
this.sidebar_content.append(this._chat.el);
|
||||
}
|
||||
}
|
||||
this.update_sidebar();
|
||||
},
|
||||
|
||||
@@ -265,7 +265,7 @@ class Form(TabContent):
|
||||
button.props.active = True
|
||||
return
|
||||
|
||||
if button.get_active():
|
||||
if button.get_active() and self.screen.current_reference:
|
||||
self._chat = Chat(self.screen.current_reference)
|
||||
self.chat.pack_start(self._chat.widget, True, True, padding=3)
|
||||
self.chat.show_all()
|
||||
|
||||
Reference in New Issue
Block a user