Dont reassign messageRequests if value didn't change

This commit is contained in:
Andrew 2024-05-29 10:29:47 +09:30
parent 4fab64e6ee
commit 69c50e6822

View File

@ -30,6 +30,7 @@ class HomeAdapter(
var messageRequests: HomeViewModel.MessageRequests? = null
set(value) {
if (field == value) return
val hadHeader = hasHeaderView()
field = value
if (value != null) {