feat: enhance forwarded messages display by enabling link support

This commit is contained in:
2026-02-12 08:15:11 +05:00
parent 6f195f4d09
commit f7ece6055e
7 changed files with 564 additions and 214 deletions

View File

@@ -888,6 +888,7 @@ fun MainScreen(
user = currentChatUser,
currentUserPublicKey = accountPublicKey,
currentUserPrivateKey = accountPrivateKey,
currentUserName = accountName,
onBack = { popChatAndChildren() },
onUserProfileClick = { user ->
// Открываем профиль другого пользователя
@@ -971,7 +972,13 @@ fun MainScreen(
},
avatarRepository = avatarRepository,
currentUserPublicKey = accountPublicKey,
currentUserPrivateKey = accountPrivateKey
currentUserPrivateKey = accountPrivateKey,
onWriteMessage = { chatUser ->
// Close profile and navigate to chat
navStack = navStack.filterNot {
it is Screen.OtherProfile || it is Screen.ChatDetail
} + Screen.ChatDetail(chatUser)
}
)
}
}