aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authoreerielili <lionel@les-miquelots.net>2024-01-10 20:20:50 +0000
committerGitHub <noreply@github.com>2024-01-10 21:20:50 +0100
commit22516c186285ed4723644ef790d1fe0ce43a0bf1 (patch)
tree8ffb85b8e8f6b6c24b6c1fcc4f7a90030dc314f6 /main/src
parent384ef1d3f15c82af1a4647b0ee704f77919ff2b1 (diff)
downloaddino-22516c186285ed4723644ef790d1fe0ce43a0bf1.tar.gz
dino-22516c186285ed4723644ef790d1fe0ce43a0bf1.zip
Fix crash on removing conference not in roster (#1516)
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/add_conversation/add_conference_dialog.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/ui/add_conversation/add_conference_dialog.vala b/main/src/ui/add_conversation/add_conference_dialog.vala
index 4b7364c7..c5e4ac51 100644
--- a/main/src/ui/add_conversation/add_conference_dialog.vala
+++ b/main/src/ui/add_conversation/add_conference_dialog.vala
@@ -101,6 +101,7 @@ public class AddConferenceDialog : Gtk.Dialog {
});
select_fragment.remove_jid.connect((row) => {
ConferenceListRow conference_row = row as ConferenceListRow;
+ if (conference_row == null) return;
stream_interactor.get_module(MucManager.IDENTITY).remove_bookmark(conference_row.account, conference_row.bookmark);
});