From 79f4af90c33462ca9e8a05664c99a106ccae6c6a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 21 Jan 2024 16:32:07 +0100 Subject: [PATCH] Add three leftover todos --- .../main/java/eu/steffo/twom/composables/viewroom/InviteFAB.kt | 1 + .../java/eu/steffo/twom/composables/viewroom/MemberListItem.kt | 1 + .../java/eu/steffo/twom/composables/viewroom/RoomIconButton.kt | 1 + 3 files changed, 3 insertions(+) diff --git a/app/src/main/java/eu/steffo/twom/composables/viewroom/InviteFAB.kt b/app/src/main/java/eu/steffo/twom/composables/viewroom/InviteFAB.kt index 034c69d..b00fef1 100644 --- a/app/src/main/java/eu/steffo/twom/composables/viewroom/InviteFAB.kt +++ b/app/src/main/java/eu/steffo/twom/composables/viewroom/InviteFAB.kt @@ -18,6 +18,7 @@ fun InviteFAB( onClick: () -> Unit = {}, onUserSelected: (userId: String) -> Unit = {}, ) { + // TODO: Hide if unprivileged ExtendedFloatingActionButton( modifier = modifier, onClick = { onClick() }, diff --git a/app/src/main/java/eu/steffo/twom/composables/viewroom/MemberListItem.kt b/app/src/main/java/eu/steffo/twom/composables/viewroom/MemberListItem.kt index ed09688..13082a5 100644 --- a/app/src/main/java/eu/steffo/twom/composables/viewroom/MemberListItem.kt +++ b/app/src/main/java/eu/steffo/twom/composables/viewroom/MemberListItem.kt @@ -134,6 +134,7 @@ fun MemberListItem( expanded = expanded, onDismissRequest = { expanded = false } ) { + // TODO: Also hide if unprivileged if (member.userId != session.myUserId) { DropdownMenuItem( text = { diff --git a/app/src/main/java/eu/steffo/twom/composables/viewroom/RoomIconButton.kt b/app/src/main/java/eu/steffo/twom/composables/viewroom/RoomIconButton.kt index ff79bc6..be6132c 100644 --- a/app/src/main/java/eu/steffo/twom/composables/viewroom/RoomIconButton.kt +++ b/app/src/main/java/eu/steffo/twom/composables/viewroom/RoomIconButton.kt @@ -117,6 +117,7 @@ fun RoomIconButton( } Box(modifier) { + // TODO: Figure out a way to clip this with a different shape IconButton( onClick = { expanded = true }, ) {