Correctly updates new changes to the User model

This commit is contained in:
Vitor Pamplona 2023-01-30 22:41:13 -03:00
parent d94f35de0e
commit c71c121356

View File

@ -117,7 +117,7 @@ class User(val pubkey: ByteArray) {
fun addMessage(user: User, msg: Note) {
getOrCreateChannel(user).add(msg)
live.refresh()
invalidateData()
updateSubscribers { it.onNewMessage() }
}
@ -165,6 +165,8 @@ class User(val pubkey: ByteArray) {
it.onRelayChange()
}
}
invalidateData()
}
fun updateUserInfo(newUserInfo: UserMetadata, updateAt: Long) {