mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-05-30 11:29:11 +02:00
Bugfix for not updating user picture and name after a message arrives
This commit is contained in:
parent
270ad56450
commit
ac1fb879c3
@ -84,7 +84,7 @@ fun ChatroomComposeChannelOrUser(
|
||||
accountViewModel: AccountViewModel,
|
||||
nav: (String) -> Unit
|
||||
) {
|
||||
val channelHex by remember {
|
||||
val channelHex by remember(baseNote) {
|
||||
derivedStateOf {
|
||||
baseNote.channelHex()
|
||||
}
|
||||
@ -103,7 +103,7 @@ private fun ChatroomDirectMessage(
|
||||
accountViewModel: AccountViewModel,
|
||||
nav: (String) -> Unit
|
||||
) {
|
||||
val userRoomHex by remember {
|
||||
val userRoomHex by remember(baseNote) {
|
||||
derivedStateOf {
|
||||
(baseNote.event as? PrivateDmEvent)?.talkingWith(accountViewModel.userProfile().pubkeyHex)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user