mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 21:45:42 +03:00
Merge pull request #1372 from nextcloud/bugfix/1371/hardenTitleCalculation
Harden Chat Title Calculation
This commit is contained in:
commit
40d76c6436
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue