Skip to content

Commit

Permalink
Merge pull request #4 from kinggq/fix/change-contact
Browse files Browse the repository at this point in the history
fix: ensure change-Contact event is triggered correctly
  • Loading branch information
kinggq authored Oct 24, 2023
2 parents 947a649 + ef86f43 commit 60a6c77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/naive-chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function getCurrentContact() {
function changeLastMessage(contact: Contact) {
currentContact.value = contact
emits('changeContact', contact)
updateContact({
id: contact.id,
unread: 0,
Expand Down

0 comments on commit 60a6c77

Please sign in to comment.