mirror of
https://github.com/status-im/status-desktop.git
synced 2025-03-01 06:51:08 +00:00
Closes #2344. Add ability to edit name, description, and private fields of a community channel. feat: Display community channel description Ensure the width of the description does not surpass the context menu and instead wraps to the next line. feat: After channel is created, set it as the active channel
101 lines
2.1 KiB
Markdown
101 lines
2.1 KiB
Markdown
---
|
|
title : "Communities"
|
|
description: ""
|
|
lead: ""
|
|
date: 2020-10-06T08:48:23+00:00
|
|
lastmod: 2020-10-06T08:48:23+00:00
|
|
draft: false
|
|
images: []
|
|
menu:
|
|
api:
|
|
parent: "statusgo"
|
|
toc: true
|
|
---
|
|
|
|
## RPC Calls
|
|
|
|
### `communities`
|
|
|
|
### `joinedCommunities`
|
|
|
|
### `createCommunity`
|
|
|
|
### `createCommunityChannel`
|
|
Creates a community channel with the given name and description, belonging to the community specified by the `communityId`.
|
|
Returns a `Chat` object containing the created community channel.
|
|
Throws an`RpcException` if there is an error returned from status-go.
|
|
*Parameters*
|
|
| Name | Type | Description |
|
|
|---------------|----------|--------------|
|
|
| `communityId` | `string` | community id |
|
|
| `name` | `string` | community name |
|
|
| `description` | `string` | community description |
|
|
|
|
### `editCommunityChannel`
|
|
Edits a community channel, specified by `communityId` and `channelId`, with the given name and description.
|
|
Returns a `Chat` object with the edited community channel.
|
|
Throws an `RpcException` if there is an error returned from status-go.
|
|
*Parameters*
|
|
| Name | Type | Description |
|
|
|---------------|----------|--------------|
|
|
| `communityId` | `string` | community id |
|
|
| `channelId` | `string` | channel id |
|
|
| `name` | `string` | community name |
|
|
| `description` | `string` | community description |
|
|
|
|
### `createCommunityChat`
|
|
|
|
### `createCommunityCategory`
|
|
|
|
### `editCommunityCategory`
|
|
|
|
### `reorderCommunityChat`
|
|
|
|
### `deleteCommunityCategory`
|
|
|
|
### `requestCommunityInfoFromMailserver`
|
|
|
|
%*[communityId])
|
|
|
|
### `joinCommunity`
|
|
|
|
%*[communityId])
|
|
|
|
### `leaveCommunity`
|
|
|
|
%*[communityId])
|
|
|
|
### `inviteUsersToCommunity`
|
|
|
|
### `exportCommunity`
|
|
|
|
%*[communityId]).parseJson()["result"].getStr
|
|
|
|
### `importCommunity`
|
|
|
|
%*[communityKey])
|
|
|
|
### `removeUserFromCommunity`
|
|
|
|
%*[communityId, pubKey])
|
|
|
|
### `requestToJoinCommunity`
|
|
|
|
### `acceptRequestToJoinCommunity`
|
|
|
|
### `declineRequestToJoinCommunity`
|
|
|
|
### `pendingRequestsToJoinForCommunity`
|
|
|
|
%*[communityId]).parseJSON()
|
|
|
|
### `myPendingRequestsToJoin`
|
|
|
|
### `banUserFromCommunity`
|
|
|
|
### `chatPinnedMessages`
|
|
|
|
%* [chatId, cursorVal, limit])
|
|
|
|
### `sendPinMessage`
|