android, desktop: group knocking (#5816)

This commit is contained in:
spaced4ndy authored and GitHub committed 2025-04-21 15:17:21 +00:00
1 parent 3095b980cb
commit 805a69da94
34 files changed
+1844 -748

No files matched your search

@@ -55,6 +55,7 @@ actual fun PlatformTextField(
textStyle: MutableState<TextStyle>,
showDeleteTextButton: MutableState<Boolean>,
userIsObserver: Boolean,
userIsPending: Boolean,
placeholder: String,
showVoiceButton: Boolean,
onMessageChange: (ComposeMessage) -> Unit,
@@ -198,6 +199,8 @@ actual fun PlatformTextField(
}
if (composeState.value.preview is ComposePreview.VoicePreview) {
ComposeOverlay(MR.strings.voice_message_send_text, textStyle, padding)
} else if (userIsPending) {
ComposeOverlay(MR.strings.reviewed_by_moderators, textStyle, padding)
} else if (userIsObserver) {
ComposeOverlay(MR.strings.you_are_observer, textStyle, padding)
}