Clickable Profile pictures on notifications

This commit is contained in:
Vitor Pamplona 2023-01-27 20:29:09 -03:00
parent acff1316be
commit 5ad39d7163
3 changed files with 13 additions and 3 deletions

View File

@ -82,7 +82,12 @@ fun BoostSetCompose(likeSetCard: BoostSetCard, isInnerNote: Boolean = false, rou
if (cardNote?.author != null) {
val userState by cardNote.author!!.live.observeAsState()
UserPicture(user = userState?.user, userAccount = account.userProfile(), size = 35.dp)
UserPicture(
user = userState?.user,
navController = navController,
userAccount = account.userProfile(),
size = 35.dp
)
}
}
}

View File

@ -82,7 +82,12 @@ fun LikeSetCompose(likeSetCard: LikeSetCard, modifier: Modifier = Modifier, isIn
if (cardNote?.author != null) {
val userState by cardNote.author!!.live.observeAsState()
UserPicture(user = userState?.user, userAccount = account.userProfile(), size = 35.dp)
UserPicture(
user = userState?.user,
navController = navController,
userAccount = account.userProfile(),
size = 35.dp
)
}
}
}

View File

@ -178,7 +178,7 @@ fun NoteMaster(baseNote: Note, accountViewModel: AccountViewModel, navController
}
})
) {
UserPicture(user = author, userAccount = account.userProfile(), size = 55.dp)
UserPicture(user = author, navController, userAccount = account.userProfile(), size = 55.dp)
Column(modifier = Modifier.padding(start = 10.dp)) {
Row(verticalAlignment = Alignment.CenterVertically) {