mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 04:09:21 +00:00
Merge pull request #1372 from nextcloud/bugfix/1371/hardenTitleCalculation
Harden Chat Title Calculation
This commit is contained in:
commit
40d76c6436
@ -1270,7 +1270,11 @@ class ChatController(args: Bundle) :
|
|||||||
override val title: String
|
override val title: String
|
||||||
get() =
|
get() =
|
||||||
if (currentConversation?.displayName != null) {
|
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 {
|
} else {
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user