This commit is contained in:
Stanislav Dmitrenko
2022-09-24 17:29:42 +03:00
committed by GitHub
parent 54b39e8d00
commit 792c442aa3
2 changed files with 3 additions and 1 deletions
@@ -1,5 +1,6 @@
package chat.simplex.app.views.newchat
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
@@ -24,6 +25,7 @@ import chat.simplex.app.views.helpers.ModalManager
@Composable
fun NewChatSheet(chatModel: ChatModel, newChatCtrl: ScaffoldController) {
if (newChatCtrl.expanded.value) BackHandler { newChatCtrl.collapse() }
NewChatSheetLayout(
addContact = {
newChatCtrl.collapse()
@@ -32,7 +32,7 @@ fun PasteToConnectView(chatModel: ChatModel) {
chatModel.incognito.value,
connectionLink = connectionLink,
pasteFromClipboard = {
connectionLink.value = clipboard?.primaryClip?.getItemAt(0)?.coerceToText(context) as String
connectionLink.value = clipboard?.primaryClip?.getItemAt(0)?.coerceToText(context) as? String ?: return@PasteToConnectLayout
},
connectViaLink = { connReqUri ->
try {