From d01af5b520d112b00e4c18b16657f89d5afe7ad4 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 28 May 2020 00:27:06 +0200 Subject: Fix compiler warnings --- main/src/ui/chat_input/chat_input_controller.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui/chat_input') 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) && -- cgit v1.2.3-70-g09d2