Fix crash on removing conference not in roster (#1516)

This commit is contained in:
eerielili 2024-01-10 20:20:50 +00:00 committed by GitHub
parent 384ef1d3f1
commit 22516c1862
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,6 +101,7 @@ public class AddConferenceDialog : Gtk.Dialog {
}); });
select_fragment.remove_jid.connect((row) => { select_fragment.remove_jid.connect((row) => {
ConferenceListRow conference_row = row as ConferenceListRow; 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); stream_interactor.get_module(MucManager.IDENTITY).remove_bookmark(conference_row.account, conference_row.bookmark);
}); });