Fixed call history list cells not refreshed when native contacts are loaded or presence is received

This commit is contained in:
Sylvain Berfini 2024-02-27 13:25:07 +01:00
parent c9eb856f19
commit d2b8689f48

View file

@ -88,7 +88,7 @@ class HistoryListAdapter : ListAdapter<CallLogModel, RecyclerView.ViewHolder>(Ca
}
override fun areContentsTheSame(oldItem: CallLogModel, newItem: CallLogModel): Boolean {
return oldItem.avatarModel.id == newItem.avatarModel.id && oldItem.iconResId == newItem.iconResId
return false // ContactAvatarModel will be the same object but with an updated content
}
}
}