mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 18:22:48 +02:00
Fix note navigation behaviour.
This commit is contained in:
committed by
KotlinGeek
parent
542bd485d0
commit
88ccb63a80
@@ -74,7 +74,9 @@ fun NoteCompose(baseNote: Note, modifier: Modifier = Modifier, isInnerNote: Bool
|
|||||||
modifier.combinedClickable(
|
modifier.combinedClickable(
|
||||||
onClick = {
|
onClick = {
|
||||||
if (note.event !is ChannelMessageEvent) {
|
if (note.event !is ChannelMessageEvent) {
|
||||||
navController.navigate("Note/${note.idHex}")
|
navController.navigate("Note/${note.idHex}"){
|
||||||
|
launchSingleTop = true
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
note.channel?.let {
|
note.channel?.let {
|
||||||
navController.navigate("Channel/${it.idHex}")
|
navController.navigate("Channel/${it.idHex}")
|
||||||
|
Reference in New Issue
Block a user