fix: Accidentally used the name as the target's key. Oops

This commit is contained in:
PapaTutuWawa 2023-07-21 22:22:25 +02:00
parent 2486d846e8
commit d5fdbe736b

View File

@ -22,7 +22,7 @@ fun recordSentMessage(context: Context, name: String, jid: String, avatarPath: S
} }
val shortcutTarget = "$pkgName.dynamic_share_target" val shortcutTarget = "$pkgName.dynamic_share_target"
val shortcutBuilder = ShortcutInfoCompat.Builder(context, name).apply { val shortcutBuilder = ShortcutInfoCompat.Builder(context, jid).apply {
setShortLabel(name) setShortLabel(name)
setIsConversation() setIsConversation()
setCategories(setOf(shortcutTarget)) setCategories(setOf(shortcutTarget))
@ -59,4 +59,4 @@ fun recordSentMessage(context: Context, name: String, jid: String, avatarPath: S
context, context,
listOf(shortcutBuilder.build()), listOf(shortcutBuilder.build()),
) )
} }