Fix reactions

This commit is contained in:
Isaac
2025-02-02 16:27:03 +04:00
parent cd98c0b7cc
commit c79bef2f11
3 changed files with 11 additions and 3 deletions

View File

@@ -187,7 +187,15 @@ func _internal_sendStarsReactionsInteractively(account: Account, messageId: Mess
for attribute in attributes {
if let attribute = attribute as? ReactionsMessageAttribute {
if let myReaction = attribute.topPeers.first(where: { $0.isMy }) {
resolvedPrivacy = myReaction.isAnonymous ? .anonymous : .default
if myReaction.isAnonymous {
resolvedPrivacy = .anonymous
} else if myReaction.peerId == account.peerId {
resolvedPrivacy = .default
} else if let peerId = myReaction.peerId {
resolvedPrivacy = .peer(peerId)
} else {
resolvedPrivacy = .anonymous
}
}
}
}