From dba63b14737d9415bb189235065efb80676e2b17 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 29 Oct 2020 19:11:55 +0100 Subject: Fix runtime critical when room has no name --- main/src/ui/util/helper.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui/util') diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala index de4896d9..5d6d7bf5 100644 --- a/main/src/ui/util/helper.vala +++ b/main/src/ui/util/helper.vala @@ -162,7 +162,7 @@ private static string? get_real_display_name(StreamInteractor stream_interactor, private static string get_groupchat_display_name(StreamInteractor stream_interactor, Account account, Jid jid) { MucManager muc_manager = stream_interactor.get_module(MucManager.IDENTITY); - string room_name = muc_manager.get_room_name(account, jid); + string? room_name = muc_manager.get_room_name(account, jid); if (room_name != null && room_name != jid.localpart) { return room_name; } -- cgit v1.2.3-70-g09d2