diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt b/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt index 44484197d..ea6cea1af 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt @@ -1270,7 +1270,11 @@ class ChatController(args: Bundle) : override val title: String get() = if (currentConversation?.displayName != null) { - " " + EmojiCompat.get().process(currentConversation?.displayName as CharSequence).toString() + try { + " " + EmojiCompat.get().process(currentConversation?.displayName as CharSequence).toString() + } catch (e: IllegalStateException) { + " " + currentConversation?.displayName + } } else { "" }