evmux-app-framework 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evmux-app-framework",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,6 +19,7 @@ import AppsObserverRequestHandlerBase from './AppsObserverRequestHandlerBase'
19
19
  title: commentData.title || '',
20
20
  text: commentData.text || '',
21
21
  pic: commentData.pic || 'https://publicfiles.evmux.com/static/logo/logo_evmux.png',
22
+ logo: commentData.logo || '',
22
23
  style: 'comment',
23
24
  enabled: false,
24
25
  created_time: new Date(),
@@ -13,7 +13,7 @@ export default class EvmuxAppsApiComments {
13
13
  }
14
14
 
15
15
  // push a comment from the app into the studio comments stream
16
- // commentData: {title, text, pic (optional image url), flags (optional)}
16
+ // commentData: {title, text, pic (optional commenter avatar url), logo (optional app logo url shown as the network badge), flags (optional)}
17
17
  async addComment(commentData) {
18
18
  let reqObj = {request: "addComment", commentData, userAppInstanceId: this.evmuxAppsApi._userAppInstanceId, componentId: this.evmuxAppsApi._componentId}
19
19
  return this.evmuxAppsApi._postMessageManager.sendRequestAsync(reqObj)