document one one chats

This commit is contained in:
Iuri Matias 2021-05-18 15:19:20 -04:00
parent 873d1ef02e
commit 9d32803b82
6 changed files with 65 additions and 0 deletions

View File

@ -12,13 +12,68 @@ menu:
toc: true
---
[User Docs for this section](/docs/chat/one_on_one/)
## sending images
### with upload button
### with drag & drop
## transactions
### send transaction
### request payment
## start new 1 on 1 Chat
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)
### with existing contact
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)
### by ENS username
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
### by chat key
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

View File

@ -12,6 +12,8 @@ menu:
toc: true
---
[User Docs for this section](/docs/onboarding/initial/)
## Disclaimer
key source file: [`ui/onboarding/Intro.qml`](https://github.com/status-im/status-desktop/blob/65a0cfbcd30eb7bde4e24cdb1680b3e03d8b1992/ui/onboarding/Intro.qml#L9)

View File

@ -12,6 +12,8 @@ menu:
toc: true
---
[User Docs for this section](/docs/onboarding/login/)
key source file: [`ui/onboarding/Login.qml`]()
## login process

View File

@ -12,6 +12,8 @@ menu:
toc: true
---
[Dev Docs for this section](/dev_guide/chat/one_on_one/)
## sending images
Sending images works on 1 on 1 chats (and in Communities), you can send an image by pressing the upload image button or by drag and dropping an image into the chat

View File

@ -12,6 +12,8 @@ menu:
toc: true
---
[Dev Docs for this section](/dev_guide/onboarding/initial/)
## Disclaimer
![url_bar](/images/onboarding/disclaimer.png)

View File

@ -12,6 +12,8 @@ menu:
toc: true
---
[Dev Docs for this section](/dev_guide/onboarding/login/)
![url_bar](/images/onboarding/login.png)
## multiple accounts