Skip to content

Commit

Permalink
Release 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smooch-ci-web committed Oct 21, 2020
1 parent df3ebe7 commit 4d06ad9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ The list of localizable strings. These strings can be modified. _If an option is
| messageTimestampFormat | h:mm A |
| messageSending | Sending... |
| messageDelivered | Delivered |
| messageTooLongError | Max message size limit exceeded ({size}). |
| messengerChannelDescription | Connect your Facebook Messenger account to be notified when you get a reply and continue the conversation on Facebook Messenger. |
| newConversationButtonText | New Conversation |
| notificationSettingsChannelsDescription | Sync this conversation by connecting to your favorite messaging app to continue the conversation your way. |
Expand Down Expand Up @@ -1116,9 +1117,9 @@ Smooch.on('conversation:added', function (participants, data) {
```javascript
// This event triggers when a participant in a sdkGroup chat reads a message
Smooch.on('conversation:read', function (payload, data) {
if (data.role === 'business') {
if (payload.role === 'business') {
console.log(`Conversation ${data.conversation.id} was read by the business`);
} else if (data.role === 'user') {
} else if (payload.role === 'user') {
console.log(`Conversation ${data.conversation.id} was read by userId: ${payload.userId}`);
}
});
Expand Down
Loading

0 comments on commit 4d06ad9

Please sign in to comment.