From 56054aae8cd2f5578571974eb96a55719e1d80e1 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Wed, 11 Feb 2026 17:03:02 +0300 Subject: [PATCH] Implement online & typing statuses in DMs, fix shared element transition Signed-off-by: denis0001-dev --- .idea/inspectionProfiles/Project_Default.xml | 6 ++ .../kotlin/ru/fromchat/api/ApiClient.kt | 78 ++++++++++++++++ .../kotlin/ru/fromchat/api/Models.kt | 21 +++++ .../kotlin/ru/fromchat/api/ProfileCache.kt | 15 ++++ .../kotlin/ru/fromchat/api/UserStatusStore.kt | 20 +++++ .../kotlin/ru/fromchat/ui/chat/Avatar.kt | 78 ++++++++++------ .../kotlin/ru/fromchat/ui/chat/ChatScreen.kt | 52 ++++++++++- .../kotlin/ru/fromchat/ui/chat/MessageItem.kt | 3 +- .../ru/fromchat/ui/chat/TypingHandler.kt | 47 ++++++++++ .../ru/fromchat/ui/dm/DmContainerScreen.kt | 15 +++- .../kotlin/ru/fromchat/ui/dm/DmPanel.kt | 50 +++++++---- .../ru/fromchat/ui/profile/ProfileScreen.kt | 90 ++++++++++++++++--- .../ru/fromchat/ui/profile/StatusBadge.kt | 68 ++++++++++++++ .../ru/fromchat/ui/profile/VerifyButton.kt | 60 +++++++++++++ .../kotlin/ru/fromchat/utils/RelativeTime.kt | 35 ++++++++ .../kotlin/ru/fromchat/MainViewController.kt | 3 +- gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlin/com/pr0gramm3r101/utils/Compose.kt | 16 ++-- 18 files changed, 586 insertions(+), 73 deletions(-) create mode 100644 app/shared/src/commonMain/kotlin/ru/fromchat/api/ProfileCache.kt create mode 100644 app/shared/src/commonMain/kotlin/ru/fromchat/api/UserStatusStore.kt create mode 100644 app/shared/src/commonMain/kotlin/ru/fromchat/ui/profile/StatusBadge.kt create mode 100644 app/shared/src/commonMain/kotlin/ru/fromchat/ui/profile/VerifyButton.kt create mode 100644 app/shared/src/commonMain/kotlin/ru/fromchat/utils/RelativeTime.kt diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index ba29ab3..44dc092 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -32,6 +32,12 @@