aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-05-28 00:27:06 +0200
committerfiaxh <git@lightrise.org>2020-06-03 21:50:40 +0200
commitd01af5b520d112b00e4c18b16657f89d5afe7ad4 (patch)
treec32a343766e72f95d2d67b456b41b66872e8cdfe /main
parent71be2abb6a007fd9b4ed3164d70f5cb95d49ce69 (diff)
downloaddino-d01af5b520d112b00e4c18b16657f89d5afe7ad4.tar.gz
dino-d01af5b520d112b00e4c18b16657f89d5afe7ad4.zip
Fix compiler warnings
Diffstat (limited to 'main')
-rw-r--r--main/src/ui/add_conversation/add_groupchat_dialog.vala1
-rw-r--r--main/src/ui/chat_input/chat_input_controller.vala2
2 files changed, 1 insertions, 2 deletions
diff --git a/main/src/ui/add_conversation/add_groupchat_dialog.vala b/main/src/ui/add_conversation/add_groupchat_dialog.vala
index 7563da7f..46298d81 100644
--- a/main/src/ui/add_conversation/add_groupchat_dialog.vala
+++ b/main/src/ui/add_conversation/add_groupchat_dialog.vala
@@ -11,7 +11,6 @@ protected class AddGroupchatDialog : Gtk.Dialog {
[GtkChild] private Stack accounts_stack;
[GtkChild] private AccountComboBox account_combobox;
- [GtkChild] private Label account_label;
[GtkChild] private Button ok_button;
[GtkChild] private Button cancel_button;
[GtkChild] private Entry jid_entry;
diff --git a/main/src/ui/chat_input/chat_input_controller.vala b/main/src/ui/chat_input/chat_input_controller.vala
index 1ec7f3f8..533f6f0d 100644
--- a/main/src/ui/chat_input/chat_input_controller.vala
+++ b/main/src/ui/chat_input/chat_input_controller.vala
@@ -167,7 +167,7 @@ public class ChatInputController : Object {
}
private void update_moderated_input_status(Account account, Xmpp.Jid? jid = null) {
- if (conversation.type_ == conversation.Type.GROUPCHAT){
+ if (conversation != null && conversation.type_ == Conversation.Type.GROUPCHAT){
Xmpp.Jid? own_jid = stream_interactor.get_module(MucManager.IDENTITY).get_own_jid(conversation.counterpart, conversation.account);
if (own_jid == null) return;
if (stream_interactor.get_module(MucManager.IDENTITY).is_moderated_room(conversation.account, conversation.counterpart) &&