2021-05-10 19:20:14 +00:00
---
title : "1 on 1 Chats"
description: ""
lead: ""
date: 2020-10-06T08:48:23+00:00
lastmod: 2020-10-06T08:48:23+00:00
draft: false
images: []
menu:
dev:
parent: "chat"
toc: true
---
2021-05-18 19:19:20 +00:00
[User Docs for this section ](/docs/chat/one_on_one/ )
2021-05-10 19:20:14 +00:00
## sending images
2021-05-18 19:19:20 +00:00
2021-05-10 20:28:21 +00:00
### with upload button
2021-05-18 19:19:20 +00:00
2021-05-10 20:28:21 +00:00
### with drag & drop
2021-05-18 19:19:20 +00:00
2021-05-10 19:20:14 +00:00
## transactions
2021-05-18 19:19:20 +00:00
2021-05-10 19:20:14 +00:00
### send transaction
2021-05-18 19:19:20 +00:00
2021-05-10 19:20:14 +00:00
### request payment
2021-05-18 19:19:20 +00:00
2021-05-10 19:20:14 +00:00
## start new 1 on 1 Chat
2021-05-18 19:19:20 +00:00
key source file: [`ui/app/AppLayouts/Chat/ContactsColumn/AddChat.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/app/AppLayouts/Chat/ContactsColumn/AddChat.qml#L36 )
key source file: [`ui/app/AppLayouts/Chat/ContactsColumn.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/app/AppLayouts/Chat/ContactsColumn.qml#L50 )
key source file: [`ui/app/AppLayouts/Chat/components/PrivateChatPopup.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/app/AppLayouts/Chat/components/PrivateChatPopup.qml#L9 )
key source file: [`ui/shared/ContactsListAndSearch.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/shared/ContactsListAndSearch.qml#L7 )
2021-05-10 19:20:14 +00:00
### with existing contact
2021-05-18 19:19:20 +00:00
key source file: [`ui/shared/ContactsListAndSearch.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/shared/ContactsListAndSearch.qml#L141 )
key source file: [`ui/shared/ExistingContacts.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/shared/ExistingContacts.qml#L37 )
key source file: [`src/app/profile/view.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/app/profile/view.nim#L26 )
key source file: [`src/app/profile/views/contact_list.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/app/profile/views/contact_list.nim#L21 )
key source file: [`src/app/profile/core.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/app/profile/core.nim#L67 )
key source file: [`src/app/profile/core.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/app/profile/core.nim#L67 )
key source file: [`src/status/contacts.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/status/contacts.nim#L52 )
key source file: [`src/status/libstatus/contacts.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/status/libstatus/contacts.nim#L26 )
2021-05-10 19:20:14 +00:00
### by ENS username
2021-05-18 19:19:20 +00:00
key source file: [`ui/shared/ContactsListAndSearch.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/shared/ContactsListAndSearch.qml#L51 )
key source file: [`src/app/chat/view.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/app/chat/view.nim#L801 )
key source file: [`ui/app/AppLayouts/Chat/components/PrivateChatPopup.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/app/AppLayouts/Chat/components/PrivateChatPopup.qml#L37 )
The ENS search uses a debouce of 500ms to avoid unnecessary searches, and calls [`chatsModel.resolveENS(ensName)` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/shared/ContactsListAndSearch.qml#L29 )
// TODO: describe how thread pool works
2021-05-10 19:20:14 +00:00
### by chat key
2021-05-18 19:19:20 +00:00
key source file: [`ui/app/AppLayouts/Chat/components/PrivateChatPopup.qml` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/app/AppLayouts/Chat/components/PrivateChatPopup.qml#L37 )
key source file: [`src/app/chat/view.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/app/chat/view.nim#L588 )
key source file: [`src/status/chat.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/status/chat.nim#L131 )
key source file: [`src/status/libstatus/chat.nim` ](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/src/status/libstatus/chat.nim#L21 )
The chat is initialized with `chatsModel.joinChat(pubKey, Constants.chatTypeOneToOne)` , on the backend this calls the `saveChat` RPC method