mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-06-29 06:48:58 +02:00
Correctly updates new changes to the User model
This commit is contained in:
@ -117,7 +117,7 @@ class User(val pubkey: ByteArray) {
|
|||||||
|
|
||||||
fun addMessage(user: User, msg: Note) {
|
fun addMessage(user: User, msg: Note) {
|
||||||
getOrCreateChannel(user).add(msg)
|
getOrCreateChannel(user).add(msg)
|
||||||
live.refresh()
|
invalidateData()
|
||||||
updateSubscribers { it.onNewMessage() }
|
updateSubscribers { it.onNewMessage() }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,6 +165,8 @@ class User(val pubkey: ByteArray) {
|
|||||||
it.onRelayChange()
|
it.onRelayChange()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
invalidateData()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateUserInfo(newUserInfo: UserMetadata, updateAt: Long) {
|
fun updateUserInfo(newUserInfo: UserMetadata, updateAt: Long) {
|
||||||
|
Reference in New Issue
Block a user