Global actions intended for non react managed actions like mention clicks, etc.
- Source:
Methods
(static) addFileForUploadWithBase64(base64, fileName, source)
Add file to the chat input for uploading via base64
Parameters:
| Name | Type | Description |
|---|---|---|
base64 |
valid base64 string |
|
fileName |
||
source |
dragndrop or paste |
- Source:
(static) addFileForUploadWithUrl(fileUrl, source)
Add file to the chat input for uploading via fileUrl
Parameters:
| Name | Type | Description |
|---|---|---|
fileUrl |
||
source |
dragndrop or paste |
- Source:
(static) enableDarkFeature(featureName, user_jid)
Enables an "experimental" feature in a way that can be triggered by Optimizely. This will be added to the features map on the hc.config object
Parameters:
| Name | Type | Description |
|---|---|---|
featureName |
String | the name of the feature to enable |
user_jid |
String | user jid |
- Source:
(static) fetchRoomParticipants()
Requests room participants from API v2.
- Source:
(static) navigateToChat(jid)
Set route by JID
Parameters:
| Name | Type | Description |
|---|---|---|
jid |
- Source:
(static) openChatByJID(data)
Open a chat by JID
Parameters:
| Name | Type | Description |
|---|---|---|
data |
- Source:
(static) openChatByMentionName(target)
Opens a chat based on an HTML element with a data-mention-name attribute. Used primarily to allow hyperlinks to open a 1-1 chat by mention name.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
target |
HTMLAnchorElement | Hyperlink Properties
|
- Source:
(static) requestAddLiveCredentials(jid, callback)
Request addLive credentials from the server
Parameters:
| Name | Type | Description |
|---|---|---|
jid |
||
callback |
- Source:
(static) signout()
Logs user out of /chat
- Source: