mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-01 02:57:27 +01:00
fix a glitch at not properly fetching private contact names
This commit is contained in:
parent
2e3604ab54
commit
57be93bf67
@ -183,7 +183,12 @@ class ThreadActivity : SimpleActivity() {
|
||||
ensureBackgroundThread {
|
||||
val cachedMessagesCode = messages.clone().hashCode()
|
||||
messages = getMessages(threadId)
|
||||
if (participants.isNotEmpty() && messages.hashCode() == cachedMessagesCode) {
|
||||
|
||||
val hasParticipantWithoutName = participants.any {
|
||||
it.phoneNumbers.contains(it.name)
|
||||
}
|
||||
|
||||
if (participants.isNotEmpty() && messages.hashCode() == cachedMessagesCode && !hasParticipantWithoutName) {
|
||||
return@ensureBackgroundThread
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user