mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-06-13 10:31:11 +02:00
Only display edit option when looking at a text note.
This commit is contained in:
parent
ee4e20bac8
commit
b6e096ec96
@ -72,6 +72,7 @@ import com.vitorpamplona.amethyst.ui.components.RobohashFallbackAsyncImage
|
|||||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel
|
||||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.ReportNoteDialog
|
import com.vitorpamplona.amethyst.ui.screen.loggedIn.ReportNoteDialog
|
||||||
import com.vitorpamplona.quartz.encoders.HexKey
|
import com.vitorpamplona.quartz.encoders.HexKey
|
||||||
|
import com.vitorpamplona.quartz.events.TextNoteEvent
|
||||||
import kotlinx.collections.immutable.ImmutableSet
|
import kotlinx.collections.immutable.ImmutableSet
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
@ -567,7 +568,7 @@ fun NoteDropDownMenu(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
Divider()
|
Divider()
|
||||||
if (state.isLoggedUser) {
|
if (state.isLoggedUser && note.event is TextNoteEvent) {
|
||||||
DropdownMenuItem(
|
DropdownMenuItem(
|
||||||
text = { Text(stringResource(R.string.edit_post)) },
|
text = { Text(stringResource(R.string.edit_post)) },
|
||||||
onClick = {
|
onClick = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user