kopia lustrzana https://github.com/vitorpamplona/amethyst
make sure only owner of images get delete dialog in Gallery
rodzic
d1ed73f78b
commit
cc8e432336
|
@ -165,12 +165,14 @@ fun LongPressToQuickActionGallery(
|
|||
content { popupExpanded.value = true }
|
||||
|
||||
if (popupExpanded.value) {
|
||||
NoteQuickActionMenuGallery(
|
||||
note = baseNote,
|
||||
onDismiss = { popupExpanded.value = false },
|
||||
accountViewModel = accountViewModel,
|
||||
nav = {},
|
||||
)
|
||||
if (baseNote.author == accountViewModel.account.userProfile()) {
|
||||
NoteQuickActionMenuGallery(
|
||||
note = baseNote,
|
||||
onDismiss = { popupExpanded.value = false },
|
||||
accountViewModel = accountViewModel,
|
||||
nav = {},
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue