mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-30 12:36:00 +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.ReportNoteDialog
|
||||
import com.vitorpamplona.quartz.encoders.HexKey
|
||||
import com.vitorpamplona.quartz.events.TextNoteEvent
|
||||
import kotlinx.collections.immutable.ImmutableSet
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
@ -567,7 +568,7 @@ fun NoteDropDownMenu(
|
||||
},
|
||||
)
|
||||
Divider()
|
||||
if (state.isLoggedUser) {
|
||||
if (state.isLoggedUser && note.event is TextNoteEvent) {
|
||||
DropdownMenuItem(
|
||||
text = { Text(stringResource(R.string.edit_post)) },
|
||||
onClick = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user