2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Remove self from count of other voters

Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
This commit is contained in:
shannon 2025-03-26 08:59:28 -04:00
parent 597d704d4e
commit d911c5a076

View File

@ -123,7 +123,7 @@ extension GroupedNotificationType {
plainString = firstAuthorName
case .poll(let status):
let votersCount = status?.poll?.votersCount ?? 0
let pollDescription = L10n.Plural.Count.pollThatYouAndOthersVotedIn(votersCount)
let pollDescription = L10n.Plural.Count.pollThatYouAndOthersVotedIn(votersCount - 1)
plainString = L10n.Scene.Notification.GroupedNotificationDescription.singleNameRanPoll(firstAuthorName, pollDescription)
case .status:
plainString = firstAuthorName