From 5232b9fd93e6047bf5c11a01150b0031aab14347 Mon Sep 17 00:00:00 2001 From: Infi Date: Mon, 2 Oct 2023 00:04:52 +0200 Subject: [PATCH] feat: polish up user not found sheet Signed-off-by: Infi --- .../main/java/chat/revolt/sheets/UserContextSheet.kt | 11 ++++++++++- app/src/main/res/values/strings.xml | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/chat/revolt/sheets/UserContextSheet.kt b/app/src/main/java/chat/revolt/sheets/UserContextSheet.kt index 236a804b..e1ed020d 100644 --- a/app/src/main/java/chat/revolt/sheets/UserContextSheet.kt +++ b/app/src/main/java/chat/revolt/sheets/UserContextSheet.kt @@ -62,7 +62,16 @@ fun UserContextSheet( if (user == null) { // TODO fetch user in this scenario - Text(text = "not in user cache, but for now there's always this message") + Column(Modifier.padding(16.dp)) { + Text( + text = stringResource(R.string.user_context_sheet_user_not_found), + style = MaterialTheme.typography.headlineSmall + ) + Text( + text = stringResource(R.string.user_context_sheet_user_not_found_description), + style = MaterialTheme.typography.bodyMedium + ) + } return } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index adf7d208..94d0f272 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -108,7 +108,7 @@ Home Menu Log out - + Join Jenvolt Jenvolt is the developer-run space for all things Android app and more. Support, feedback go here. Maybe you will get to try out new features! 👀 @@ -234,6 +234,8 @@ Stay Leave Silently + Can\'t resolve this user + This user may have been deleted or you may not have permission to view them. Bio This user hasn\'t set a bio yet. This user\'s bio could not be fetched. Please verify you share a server or are friends.