This plugin will read from from appData that gets inserted in Premium Sociall Wall 2 plugin
{
"users": [
{
"id": String, // Buildfire user id
"displayName": String, // Buildfire user displayName
"imageUrl": String // Buildfire user imageUrl
},
{
"id": String, // Buildfire user id
"displayName": String, // Buildfire user displayName
"imageUrl": String // Buildfire user imageUrl
}
],
"wallId": String, // Premium Social Wall 2 wall id - 64 characters where first 32 and last 32 are valid user id,
"wallTitle": String, //PSW wall id title
"lastMessage": {
"text": String, // Text of last message sent,
"createdAt": Date, // Time when last message was sent,
"sender": String, // Buildfire user id of message sender,
"isRead": Boolean
},
"navigationData": {
"pluginId": String,
"instanceId": String,
"folderName": String
},
"_buildfire.index": {
"number1": isActive,
"date1": lastMessage.createdAt,
"string1": wallId,
"array1": [
{
"string1": user[0].id
},
{
"string1": user[1].id
}
],
"text": user[1].displayName + "||" + user[1].displayName
}
}
- Data will be inserted only on walls that are equal to 2 user ids concatenated.
- Plugin keeps track of last message, sender and read status
- Plugin also remembers social wall instance where message was to created and uses that data when navigating away from inbox and into social wall
Be sure to have the latest BuildFire CLI installed in your system. Fork this repository and work from your fork.
Be sure to be in the plugin's folder while running the following commands:
$ npm install
- Install all plugin dependencies$ npm start
- Runs the plugin in the Plugin Tester$ npm run build
- Builds the plugin to be submitted to the Marketplace
Tech spec link https://docs.google.com/document/d/1PR36BxeHFkj-V40VgThxRWYyeTcpZJLDoHVHnE6l89g/edit?ts=5e726e0b#