Skip to content

Commit 72db893

Browse files
authored
fix: correct contact photo retrieval in call history (#586)
Refs: #585
1 parent 0c2efa8 commit 72db893

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- Fixed wrong contact photo in call history for some contacts ([#585])
810

911
## [1.7.1] - 2025-09-12
1012
### Changed
@@ -196,6 +198,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
196198
[#535]: https://github.com/FossifyOrg/Phone/issues/535
197199
[#543]: https://github.com/FossifyOrg/Phone/issues/543
198200
[#565]: https://github.com/FossifyOrg/Phone/issues/565
201+
[#585]: https://github.com/FossifyOrg/Phone/issues/585
199202

200203
[Unreleased]: https://github.com/FossifyOrg/Phone/compare/1.7.1...HEAD
201204
[1.7.1]: https://github.com/FossifyOrg/Phone/compare/1.7.0...1.7.1

app/src/main/kotlin/org/fossify/phone/helpers/RecentsHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class RecentsHelper(private val context: Context) {
220220
if (contactPhotosMap.containsKey(number)) {
221221
photoUri = contactPhotosMap[number]!!
222222
} else {
223-
val contact = contacts.firstOrNull { it.doesContainPhoneNumber(number) }
223+
val contact = contacts.firstOrNull { it.doesHavePhoneNumber(number) }
224224
if (contact != null) {
225225
photoUri = contact.photoUri
226226
contactPhotosMap[number] = contact.photoUri

0 commit comments

Comments
 (0)