hide contact presence indicator when related account went offline
This commit is contained in:
parent
d88d858069
commit
cf9ca3cc46
|
@ -52,7 +52,9 @@ class PresenceIndicator : View {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setStatus(contact: Contact?) {
|
fun setStatus(contact: Contact?) {
|
||||||
val status = contact?.shownStatus
|
val status = contact?.shownStatus?.takeIf {
|
||||||
|
contact.account?.isOnlineAndConnected == true
|
||||||
|
}
|
||||||
if (status != this.status) {
|
if (status != this.status) {
|
||||||
this.status = status
|
this.status = status
|
||||||
invalidate()
|
invalidate()
|
||||||
|
|
Loading…
Reference in a new issue