Update group name display in stories landing page.

fork-5.53.8
Alex Hart 2022-07-22 16:18:28 -03:00 zatwierdzone przez Cody Henthorne
rodzic c77718f4c7
commit b32fe003b2
1 zmienionych plików z 1 dodań i 13 usunięć

Wyświetl plik

@ -242,11 +242,7 @@ object StoriesLandingItem {
}
private fun getGroupPresentation(model: Model): String {
return context.getString(
R.string.StoryViewerPageFragment__s_to_s,
getIndividualPresentation(model),
model.data.storyRecipient.getDisplayName(context)
)
return model.data.storyRecipient.getDisplayName(context)
}
private fun getReleaseNotesPresentation(model: Model): CharSequence {
@ -258,14 +254,6 @@ object StoriesLandingItem {
return name
}
private fun getIndividualPresentation(model: Model): String {
return if (model.data.primaryStory.messageRecord.isOutgoing) {
context.getString(R.string.Recipient_you)
} else {
model.data.individualRecipient.getDisplayName(context)
}
}
private fun displayContext(model: Model) {
itemView.isSelected = true
StoryContextMenu.show(context, itemView, storyPreview, model) { itemView.isSelected = false }