docs: add docs for contact requests

This commit is contained in:
Jonathan Rainville 2021-05-18 11:15:05 -04:00
parent a90257e141
commit 8340a28ad1
7 changed files with 126 additions and 0 deletions

View File

@ -0,0 +1,76 @@
---
title : "Contact requests"
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
---
[User Docs for this section](/docs/chat/contact_requests/)
## Sending a contact request
key source file: [`src/app/profile/views/contacts.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/views/contacts.nim#L186)
### From the contact banner
key source file: [`ui/app/AppLayouts/Chat/ChatColumn/ChatComponents/AddToContactBanner.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Chat/ChatColumn/ChatComponents/AddToContactBanner.qml#L36)
### From the contact request message
key source file: [`ui/app/AppLayouts/Chat/ChatColumn/ChatComponents/ChatRequestMessage.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Chat/ChatColumn/ChatComponents/ChatRequestMessage.qml#L46)
## Seeing contact requests
key source file: [`src/app/profile/views/contacts.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/views/contacts.nim#L123)
key source file: [`ui/app/AppLayouts/Chat/components/ContactRequestsPopup.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Chat/components/ContactRequestsPopup.qml)
## Accepting contact request
key source file: [`src/app/profile/views/contacts.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/views/contacts.nim#L186)
key source file: [`ui/app/AppLayouts/Profile/Sections/Contacts/ContactRequest.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Profile/Sections/Contacts/ContactRequest.qml#L79)
## Accepting all contact requests
key source file: [`src/app/profile/views/contacts.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/views/contacts.nim#L199)
key source file: [`ui/app/AppLayouts/Chat/components/ContactRequestsPopup.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Chat/components/ContactRequestsPopup.qml#L83)
## Rejecting contact request
key source file: [`src/app/profile/views/contacts.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/views/contacts.nim#L191)
key source file: [`ui/app/AppLayouts/Profile/Sections/Contacts/ContactRequest.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Profile/Sections/Contacts/ContactRequest.qml#L64)
## Rejecting all contact requests
key source file: [`src/app/profile/views/contacts.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/views/contacts.nim#L194)
key source file: [`ui/app/AppLayouts/Chat/components/ContactRequestsPopup.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Chat/components/ContactRequestsPopup.qml#L69)
## Block contact request
key source file: [`src/app/profile/views/contacts.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/views/contacts.nim#L216)
key source file: [`ui/app/AppLayouts/Profile/Sections/Contacts/ContactRequest.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Profile/Sections/Contacts/ContactRequest.qml#L125)
## Notification
key source file: [`src/app/profile/views/contacts.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/views/contacts.nim#L90)
key source file: [`ui/app/AppLayouts/Chat/ContactsColumn.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Chat/ContactsColumn.qml#L124)
## Modifying the setting
key source file: [`src/app/profile/view.nim`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/src/app/profile/view.nim#L137)
key source file: [`ui/app/AppLayouts/Profile/Sections/PrivacyContainer.qml`](https://github.com/status-im/status-desktop/blob/2e5e39191ae25b6b493a7477bd9d13cbd2a556bb/ui/app/AppLayouts/Profile/Sections/PrivacyContainer.qml#L118)

View File

@ -0,0 +1,50 @@
---
title : "Contact requests"
description: ""
lead: ""
date: 2021-05-18T08:48:23+00:00
lastmod: 2021-05-18T08:48:23+00:00
draft: false
images: []
menu:
docs:
parent: "chat"
toc: true
---
## Sending a contact request
To send a contact request to someone, you just have to add them as a contact, either from the contact profile, the Contact section in your profile or from the one to one chat button called "Add to contact".
![addToContact](/images/chats/contact_requests/addToContact.png)
## Seeing contact requests
The contact requests button appears in the contact colmun just above channel. If there is no contact requests, the button is not shown. The number of requests is shown in the badge.
That list will update when you receive new contact requests in real time or update with past requests when logging in.
![requestButton](/images/chats/contact_requests/requestButton.png)
You will also get a notification, if it was enabled in the settings (enabled by default), when you receive a new contact request.
In the Contact requests popup, wou will see all your received contact requests.
From there, you can accept or reject requests individually or in bulk.
You can also block a person or see it's profile from the three dots (`...`) button.
![popup](/images/chats/contact_requests/popup.png)
## Blocking new contact requests
You can block new contact requests by going in your Profile in the Privacy section.
The "Allow new contact requests" is by default turned on, meaning that you will get new contact requests. If you turn it off, you will no longer receive contact requests from anyone. You can still add contacts and get contacted by your contacts however.
![allowContactSetting](/images/chats/contact_requests/allowContactSetting.png)
## Blocking contact request notifications
If you still want to receive contact requests, but don't want the notification, you can disable it in your Profile in the Notifications section.
![notifySetting](/images/chats/contact_requests/notifySetting.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB