Skip to content

Commit

Permalink
fix(reply): display correct quick profile (#3085)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZakablukov committed May 9, 2022
1 parent c8cd552 commit 2a06f23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/views/chat/message/reply/Item/Item.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="reply-container">
<div class="is-reply">
<span @click="(event) => $emit('click', event)">
<span @click="(event) => $emit('click', event, reply.from)">
<UiCircle
:type="src ? 'image' :'random'"
:seed="address"
Expand Down
7 changes: 4 additions & 3 deletions components/views/chat/message/reply/Reply.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,13 @@ export default Vue.extend({
/**
* @method showQuickProfile DocsTODO
* @description
* @param e
* @param {MouseEvent} e - Click event
* @param {string} textilePublicKey - The author of reply
* @example
*/
showQuickProfile(e: MouseEvent) {
showQuickProfile(e: MouseEvent, textilePublicKey: string) {
this.$store.dispatch('ui/showQuickProfile', {
textilePublicKey: this.$props.message.from,
textilePublicKey,
position: { x: e.x, y: e.y },
})
},
Expand Down

0 comments on commit 2a06f23

Please sign in to comment.