Skip to content

Commit

Permalink
fix(edit): edit was not getting friends textile key anymore (#3165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jekrimo committed May 17, 2022
1 parent 04389ab commit a228fcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/views/chat/message/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ export default Vue.extend({
address,
this.$store.state.friends,
)
if (!recipient) {
this.$store.dispatch('textile/editTextMessage', {
to: this.$store.state.friends.activeConversation.target
.textilePubkey,
original: this.$props.message,
text: message,
})
}
this.$store.dispatch('textile/editTextMessage', {
to: recipient?.textilePubkey,
original: this.$props.message,
Expand Down

0 comments on commit a228fcd

Please sign in to comment.