Fix mentions with share to single group story flow.

This commit is contained in:
Cody Henthorne 2022-11-08 11:06:44 -05:00 committed by Greyson Parrelli
parent a81a4cdb53
commit 9851bc300e

View file

@ -46,6 +46,14 @@ sealed class MediaSelectionDestination {
}
}
override fun getRecipientSearchKey(): ContactSearchKey.RecipientSearchKey? {
return if (recipientSearchKeys.size == 1) {
recipientSearchKeys[0]
} else {
super.getRecipientSearchKey()
}
}
override fun getRecipientSearchKeyList(): List<ContactSearchKey.RecipientSearchKey> = recipientSearchKeys
override fun toBundle(): Bundle {