mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Correctly updates new changes to the User model
This commit is contained in:
parent
d94f35de0e
commit
c71c121356
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user