mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 13:21:54 +02:00
make sure only owner of images get delete dialog in Gallery
This commit is contained in:
@@ -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 = {},
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user