fix: quick fix out of bounds exception (#588)

This commit is contained in:
Naveen Singh 2025-10-29 18:57:55 +05:30 committed by GitHub
parent b6f39da7ef
commit 39e320366e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,7 @@ class ShortcutHelper(private val context: Context) {
setPersons(persons)
setIntent(intent)
setRank(1)
if (!conv.isGroupConversation && !conv.usesCustomTitle) {
if (!conv.isGroupConversation && !conv.usesCustomTitle && persons.isNotEmpty()) {
setIcon(persons[0].icon)
} else {
val icon = if (conv.isGroupConversation) {