From b4bb0912fc328bc44b13e190f59b347eb5d4310a Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 14 Dec 2017 02:01:55 +0100 Subject: Show subscription request in conversation summary --- main/src/ui/add_conversation/add_contact_dialog.vala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'main/src/ui/add_conversation') diff --git a/main/src/ui/add_conversation/add_contact_dialog.vala b/main/src/ui/add_conversation/add_contact_dialog.vala index 2e7830a3..decc588d 100644 --- a/main/src/ui/add_conversation/add_contact_dialog.vala +++ b/main/src/ui/add_conversation/add_contact_dialog.vala @@ -23,7 +23,6 @@ protected class AddContactDialog : Gtk.Dialog { [GtkChild] private Button cancel_button; [GtkChild] private Entry jid_entry; [GtkChild] private Entry alias_entry; - [GtkChild] private CheckButton subscribe_checkbutton; private StreamInteractor stream_interactor; @@ -41,9 +40,7 @@ protected class AddContactDialog : Gtk.Dialog { string? alias = alias_entry.text == "" ? null : alias_entry.text; Jid jid = new Jid(jid_entry.text); stream_interactor.get_module(RosterManager.IDENTITY).add_jid(account, jid, alias); - if (subscribe_checkbutton.active) { - stream_interactor.get_module(PresenceManager.IDENTITY).request_subscription(account, jid); - } + stream_interactor.get_module(PresenceManager.IDENTITY).request_subscription(account, jid); close(); } -- cgit v1.2.3-70-g09d2