diff --git a/README.md b/README.md index 652e2e08..2dd5af1d 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,9 @@ Vue.use(Chat) :alwaysScrollToBottom="alwaysScrollToBottom" :messageStyling="messageStyling" @onType="handleOnType" - @edit="editMessage" /> + @edit="editMessage" + :authorId="'me'" + /> ``` @@ -198,6 +200,7 @@ For more detailed examples see the demo folder. | showTypingIndicator | Boolean | A bool indicating whether or not to show the `typing` indicator | colors | Object | An object containing the specs of the colors used to paint the component. [See here](#faq) | messageStyling | Boolean | A bool indicating whether or not to enable `msgdown` support for message formatting in chat. [See here](#faq) +| authorId | String | Current user id used to compare message authors. #### Events diff --git a/demo/src/App.vue b/demo/src/App.vue index 4cc6cb60..bd4d3d4b 100644 --- a/demo/src/App.vue +++ b/demo/src/App.vue @@ -22,6 +22,7 @@ @onType="handleOnType" @edit="editMessage" @remove="removeMessage" + :authorId="'me'" >