refreshing the threePids when entering the preference screen, afterwards we're monitoring for changes

This commit is contained in:
Adam Brown 2021-10-12 11:44:30 +01:00
parent 1c1424eafc
commit bd51eae741

View file

@ -406,7 +406,7 @@ private fun Session.getEmailsWithPushInformation(): List<Pair<ThreePid.Email, Bo
}
private fun Session.getEmailsWithPushInformationLive(): LiveData<List<Pair<ThreePid.Email, Boolean>>> {
return getThreePidsLive(refreshData = false)
return getThreePidsLive(refreshData = true)
.distinctUntilChanged()
.map { threePids ->
val emailPushers = getPushers().filter { it.kind == Pusher.KIND_EMAIL }