MatheusrdSantos / vue-quick-chat

A simple chat component created with Vue.js
MIT License
128 stars 45 forks source link

Pushing messages causes the timestamp on all previous messages to be set to the current time #50

Closed sgarringer closed 3 years ago

sgarringer commented 3 years ago

I'm having trouble using this to build a chat app.

Steps to reproduce:

Add a single message to this.messages

Create a second message, and call this.messages.push(secondmessage)

The timestamp on the previous message will be sent to the current time.

Rolling back to 1.2.6 resolved issue. It seems to be related to commit 18f60fbced885919da937747ca118aa2b25fd077

MatheusrdSantos commented 3 years ago

Hi, @sgarringer. It was my mistake on this commit 18f60fb. I already know how to solve it. I'll release a new version today. Anyway, feels free to open a PR if you need it.

Thank you!

MatheusrdSantos commented 3 years ago

Fixed on version 1.2.8.

Thanks again!